Add bootoption noconsolefont 0.7.28
authorMichael Prokop <mika@grml.org>
Thu, 15 Nov 2007 10:48:52 +0000 (11:48 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 15 Nov 2007 10:48:52 +0000 (11:48 +0100)
autoconfig.functions
debian/changelog

index 96c1703..dc446e4 100755 (executable)
@@ -295,12 +295,16 @@ config_language(){
     eend $RC
  fi
 
- if [ -n "$CONSOLEFONT" ] ; then
-    einfo "Running consolechars using ${CONSOLEFONT}"
-    for vc in `seq 0 ${NUM_CONSOLES}`  ; do
-        consolechars --tty=/dev/tty${vc} -f $CONSOLEFONT ; RC=$?
-    done
-    eend $?
+ if checkbootparam noconsolefont ; then
+    ewarn "Skipping setting console font as requested on boot commandline." ; eend 0
+ else
+    if [ -n "$CONSOLEFONT" ] ; then
+       einfo "Running consolechars using ${CONSOLEFONT}"
+       for vc in `seq 0 ${NUM_CONSOLES}`  ; do
+           consolechars --tty=/dev/tty${vc} -f $CONSOLEFONT ; RC=$?
+       done
+       eend $?
+    fi
  fi
 
  eoutdent
index b90d2a0..496ead5 100644 (file)
@@ -3,6 +3,8 @@ grml-autoconfig (0.7.28) unstable; urgency=low
   * Drop the 'consolechars --tty=/dev/tty${vc} -d' stuff from
     config_language, otherwise we will find ourself at tty5 under
     certain circumstances.
+  * Add bootoption noconsolefont to skip setting console font via
+    consolechars.
 
  -- Michael Prokop <mika@grml.org>  Thu, 15 Nov 2007 11:46:15 +0100