]> git.pld-linux.org Git - packages/em8300.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Wed, 21 May 2003 21:45:50 +0000 (21:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    em8300.init -> 1.5

em8300.init

index f8af3bacec113c999f3e724b5de2e7aace3b307c..928379744a50ede7c5c525523aca14fffc4c8a3e 100644 (file)
@@ -12,28 +12,29 @@ fi
 
 . /etc/sysconfig/em8300
 
-load_module () { run_cmd "$(nls 'Loading module') $1" modprobe "$*"; }
-
+RETVAL=0
 # See how we were called.
 case "$1" in
-  start)
-       is_yes "$BT_LOAD" && load_module bt865 $BT_OPT
-       load_module adv717x $ADV_OPT
-       load_module em8300 $EM_OPT
+  start|reload|force-reload)
+       is_yes "$BT_LOAD" && _modprobe single bt865 $BT_OPT
+       _modprobe single adv717x $ADV_OPT
+       _modprobe single em8300 $EM_OPT
        run_cmd "Uploading em8300 microcode" "sh -c 'em8300_microcode_upload 2>/dev/null'"
+       [ $? -ne 0 ] && RETVAL=1
        ;;
   stop)
        run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
        ;;
   status)
        ;;
-  restart|reload)
+  restart)
        $0 stop
        $0 start
+       exit $?
        ;;
   *)
-       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
+exit $RETVAL
This page took 0.148148 seconds and 4 git commands to generate.