summaryrefslogtreecommitdiff
path: root/xi/s6/scripts/console_set.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xi/s6/scripts/console_set.sh')
-rwxr-xr-xxi/s6/scripts/console_set.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/xi/s6/scripts/console_set.sh b/xi/s6/scripts/console_set.sh
new file mode 100755
index 0000000..9c0e9f3
--- /dev/null
+++ b/xi/s6/scripts/console_set.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+[ -r /etc/vconsole.conf ] && . /etc/vconsole.conf
+TTYS=${TTYS:-6}
+_index=0
+while [ ${_index} -le $TTYS ]; do
+ if [ -n "$FONT" ]; then
+ setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \
+ $FONT -C "/dev/tty${_index}"
+ fi
+ printf "\033%s" "%G" >/dev/tty${_index}
+ _index=$((_index + 1))
+done
+if [ -n "$KEYMAP" ]; then
+ loadkeys -q -u ${KEYMAP}
+fi