]> git.pld-linux.org Git - packages/console-tools.git/blobdiff - console.init
- updated gettext BR
[packages/console-tools.git] / console.init
index e7c33412caf3fc8b9fa959125a46f9de20742072..1ed11aa097bd480aa6d139272363f7773b567cc6 100644 (file)
 . /etc/rc.d/init.d/functions
 
 case "$1" in
-  start|restart|reload)
+  start|restart|reload|force-reload)
        . /etc/sysconfig/console
 
-       if [ -n "$SVGATEXTMODE" ]
-       then
+       if [ -n "$SVGATEXTMODE" ]; then
                run_cmd "$(nls 'Setting Text Mode') $SVGATEXTMODE" SVGATextMode $SVGATEXTMODE
        fi
-       if [ -n "$FBSET" ]
-       then
+       if [ -n "$FBSET" ]; then
                run_cmd "$(nls 'Setting Text Mode') $FBSET" fbset -a $FBSET
        fi
-       if [ -n "$CONSOLEFONT" ]
-       then
+       if [ -n "$CONSOLEFONT" ]; then
                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
-       if [ -n "$KEYTABLE" ]
-       then
+       if [ -n "$KEYTABLE" ]; then
                run_cmd "Loading keyboard table" loadkeys $KEYTABLE < /dev/tty0 > /dev/tty0
        fi
        ;;
@@ -46,8 +42,8 @@ case "$1" in
        # Nothing to stop and/or report
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+       exit 3
 esac
 
 exit 0
This page took 0.08793 seconds and 4 git commands to generate.