diff options
author | Juan RP <xtraeme@gmail.com> | 2014-08-07 17:22:57 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-08-07 17:22:57 +0200 |
commit | 53a09fa9d57bad1b074d0f72a302ffc4517d4b0f (patch) | |
tree | 0fbaaa59a8e1eb3669bb4ad6bd7925aa493f5253 /core-services/06-console-setup.sh | |
parent | 18ae61d8157af26fb58041bdfcf8cc405f1a2157 (diff) | |
download | runit-void-53a09fa9d57bad1b074d0f72a302ffc4517d4b0f.tar.gz runit-void-53a09fa9d57bad1b074d0f72a302ffc4517d4b0f.tar.xz runit-void-53a09fa9d57bad1b074d0f72a302ffc4517d4b0f.zip |
Added "core" services that are run from scripts on stage 1.
- /etc/runit/functions: contains common functions to be used in core-services. - /etc/runit/core-services: directory containing one-time tasks run in stage 1. - Added LXC container detection to disable some core services. This accidentally also fixes the issue of unicode not working in the active TTY from stage 1.
Diffstat (limited to 'core-services/06-console-setup.sh')
-rwxr-xr-x | core-services/06-console-setup.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core-services/06-console-setup.sh b/core-services/06-console-setup.sh new file mode 100755 index 0000000..63fea25 --- /dev/null +++ b/core-services/06-console-setup.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# vim: set ts=4 sw=4 et: + +. /etc/runit/functions +[ -r /etc/rc.conf ] && . /etc/rc.conf + +[ -n "$VIRTUALIZATION" ] && return 0 + +msg "Setting up TTYs to unicode mode...\n" +for i in /dev/tty[0-6]; do + unicode_start < $i +done + +if [ -n "$FONT" ]; then + msg "Setting up TTYs font to '${FONT}'...\n" + for i in /dev/tty[0-6]; do + setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} $FONT -C $i + done +fi + +msg "Setting up keymap to '${KEYMAP:-us}'...\n" +loadkeys -q -u ${KEYMAP:-us} |