From 30cd47881b6be82df05a1393acc1e9112fb9935f Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Mon, 23 Mar 2015 15:49:09 +0100 Subject: Add an additional variable for ttys --- core-services/02-console-setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'core-services') 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 -- cgit 1.4.1