]> git.pld-linux.org Git - packages/kbd.git/commitdiff
- bugfix - stop was broken
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 12 Jan 2003 13:37:35 +0000 (13:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added setting num lock (other leds setting is pointless)

Changed files:
    kbd.init -> 1.10

kbd.init

index ace303919a6ac6a812f0076772914207eee7b977..dee1e2da86ebc666bdfdea244004cb2607be58de 100644 (file)
--- a/kbd.init
+++ b/kbd.init
@@ -94,12 +94,20 @@ case "$1" in
                if [ $BACKGROUND_COLOUR ]; then
                        /usr/bin/setterm -background $BACKGROUND_COLOUR
                fi
+               if [ $NUM_LOCK ]; then
+                       if [ $NUM_LOCK = "on" ]; then
+                               /usr/bin/setleds -D +num
+                       else
+                               /usr/bin/setleds -D -num
+                       fi
+               fi
                ;;
        stop)
-               /usr/bin/setterm -defaults
+               /usr/bin/setterm -default
+               /usr/bin/setleds -D -num
                ;;
        status)
-               # Nothing to report
+               /usr/bin/setleds
                ;;
        *)
                msg_usage "$0 {start|stop|status|restart}"
This page took 0.082959 seconds and 4 git commands to generate.