From 5b78d4d695cf0f0eb09e2ee3c96be31250611534 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 12 Sep 2018 18:44:29 +0200 Subject: Add an optional service for switching the console font Signed-off-by: David Oberhollenzer --- docs/defconfig.md | 2 ++ services/Makemodule.am | 3 ++- services/consolefont | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 services/consolefont diff --git a/docs/defconfig.md b/docs/defconfig.md index 41afc02..cdfe333 100644 --- a/docs/defconfig.md +++ b/docs/defconfig.md @@ -86,6 +86,8 @@ For the shutdown and reboot targets, the following services are executed: * agetty - A parameterizeable, respawn type `agetty` service. The first parameter is the terminal device that the getty should run on. + * consolefont - If enabled, run once before sysinit. Sets the console font + to the first parameter. * dhcpcdmaster - If one or more network interfaces should be configured using dhcpcd, this service starts a central `dhcpcd` master instance. * dhcpcd - A parameterizeable single shot service that signals the `dhcpcd` diff --git a/services/Makemodule.am b/services/Makemodule.am index 5e38eca..0cea6ff 100644 --- a/services/Makemodule.am +++ b/services/Makemodule.am @@ -8,7 +8,7 @@ init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound init_DATA += services/dnsmasq services/ifdown services/modules init_DATA += services/network services/hostapd services/swclock init_DATA += services/swclocksave services/nft services/sigkill -init_DATA += services/sshd services/sshd_keygen +init_DATA += services/sshd services/sshd_keygen services/consolefont if USYSLOGD init_DATA += services/usyslogd @@ -23,3 +23,4 @@ EXTRA_DIST += services/hwclock services/loopback services/klogd EXTRA_DIST += services/sync services/sysctl services/tmpfs EXTRA_DIST += services/dhcpcd services/dhcpcdmaster services/unbound EXTRA_DIST += services/usyslogd services/dnsmasq services/network +EXTRA_DIST += services/consolefont diff --git a/services/consolefont b/services/consolefont new file mode 100644 index 0000000..1584db9 --- /dev/null +++ b/services/consolefont @@ -0,0 +1,6 @@ +description set console font +type once +target boot +before sysinit +after vfs +exec setfont %0 -- cgit v1.2.3