]> git.pld-linux.org Git - packages/console-tools.git/commitdiff
- use run_cmd to catch fail case
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 26 Aug 2000 13:33:22 +0000 (13:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    console.init -> 1.4

console.init

index 9f87cc0f46a57a13704d21c85c3e104ef0e87ad2..49dbf158dce9786653ba030380f2ff764e7eb280 100644 (file)
@@ -23,32 +23,19 @@ case "$1" in
        start|restart)
                . /etc/sysconfig/console
 
        start|restart)
                . /etc/sysconfig/console
 
-               if [ "$SVGATEXTMODE" != "" ]
+               if [ -n "$SVGATEXTMODE" ]
                then
                then
-                       SVGATextMode $SVGATEXTMODE
+                       run_cmd "Setting Text Mode $SVGATEXTMODE" SVGATextMode $SVGATEXTMODE
                fi
                fi
-               if [ "$CONSOLEFONT" != "" ]
+               if [ -n "$CONSOLEFONT" ]
                then
                then
-                       show "Loading console font"
-                       busy
-                       consolechars -f $CONSOLEFONT > /dev/null 2>&1
-                       deltext;ok
+                       run_cmd "Loading console font and map" consolechars -m ${CONSOLEMAP:-trivial.trans} -f $CONSOLEFONT
                        # Don't use "" here because additional options may be
                        # specified after the font name (e.g. fallback tables)
                fi
                        # Don't use "" here because additional options may be
                        # specified after the font name (e.g. fallback tables)
                fi
-               if [ "$CONSOLEMAP" != "" ]
+               if [ -n "$KEYTABLE" ]
                then
                then
-                       show "Loading console map"
-                       busy
-                       consolechars -m $CONSOLEMAP > /dev/null 2>&1
-                       deltext;ok
-               fi
-               if [ "$KEYTABLE" != "" ]
-               then
-                       show "Loading keyboard table"
-                       busy
-                       loadkeys $KEYTABLE > /dev/null 2>&1
-                       deltext;ok
+                       run_cmd "Loading keyboard table" loadkeys $KEYTABLE < /dev/tty0 > /dev/tty0
                fi
                ;;
        stop)
                fi
                ;;
        stop)
@@ -58,7 +45,7 @@ case "$1" in
                # Nothing to report
                ;;
        *)
                # Nothing to report
                ;;
        *)
-               msg_Usage "$0 {start|stop|status|restart}"
+               msg_usage "$0 {start|stop|status|restart}"
                exit 1
 esac
 
                exit 1
 esac
 
This page took 0.042914 seconds and 4 git commands to generate.