Author: glen                         Date: Fri Mar 16 18:26:46 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use functions

---- Files affected:
SOURCES:
   em8300.init (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/em8300.init
diff -u SOURCES/em8300.init:1.8 SOURCES/em8300.init:1.9
--- SOURCES/em8300.init:1.8     Fri Feb 24 15:21:29 2006
+++ SOURCES/em8300.init Fri Mar 16 19:26:41 2007
@@ -12,25 +12,32 @@
 
 . /etc/sysconfig/em8300
 
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start|reload|force-reload)
+start() {
        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 'em8300setup 2>/dev/null'"
        [ $? -ne 0 ] && RETVAL=1
+}
+
+stop() {
+       run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 
2>/dev/null'"
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start|reload|force-reload)
+       start
        ;;
   stop)
-       run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 
2>/dev/null'"
+       stop
        ;;
   status)
        ;;
   restart)
-       $0 stop
-       $0 start
-       exit $?
+       stop
+       start
        ;;
   *)
        msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/em8300.init?r1=1.8&r2=1.9&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to