]> git.pld-linux.org Git - packages/em8300.git/commitdiff
- updated
authorankry <ankry@pld-linux.org>
Fri, 2 May 2003 23:38:07 +0000 (23:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    em8300.init -> 1.4

em8300.init

index ecc0c7d33f4b4f853e9b5dbdba7ba3af7e26ed48..f8af3bacec113c999f3e724b5de2e7aace3b307c 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
-# chkconfig: 2345 11 89
-# description: loads em8300 modules and uploads microcode
+# chkconfig:   2345 11 89
+# description: loads em8300 modules and uploads microcode
 
 if [ ! -f /etc/sysconfig/em8300 ] ; then
    exit 0
@@ -12,7 +12,7 @@ fi
 
 . /etc/sysconfig/em8300
 
-load_module () { run_cmd "Loading module $1" modprobe "$*"; }
+load_module () { run_cmd "$(nls 'Loading module') $1" modprobe "$*"; }
 
 # See how we were called.
 case "$1" in
@@ -23,16 +23,17 @@ case "$1" in
        run_cmd "Uploading em8300 microcode" "sh -c 'em8300_microcode_upload 2>/dev/null'"
        ;;
   stop)
-        run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
+       run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
        ;;
-  restart)
+  status)
+       ;;
+  restart|reload)
        $0 stop
        $0 start
        ;;
   *)
-       msg_usage "$0 {start|stop|restart}"
+       msg_usage "$0 {start|stop|restart|reload|status}"
        exit 1
 esac
 
 exit 0
-
This page took 0.077016 seconds and 4 git commands to generate.