about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
Diffstat (limited to 'core-services')
-rw-r--r--core-services/02-console-setup.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/core-services/02-console-setup.sh b/core-services/02-console-setup.sh
index f1a4afc..5c8d468 100644
--- a/core-services/02-console-setup.sh
+++ b/core-services/02-console-setup.sh
@@ -2,10 +2,15 @@
 
 [ -n "$VIRTUALIZATION" ] && return 0
 
+TTYS=${TTYS:-12}
 if [ -n "$FONT" ]; then
     msg "Setting up TTYs font to '${FONT}'..."
-    for i in /dev/tty[0-6]; do
-        setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} $FONT -C $i
+
+    _index=0
+    while [ ${_index} -le $TTYS ]; do
+        setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \
+                $FONT -C "/dev/tty${_index}"
+        _index=$((_index + 1))
     done
 fi