Author: glen                         Date: Thu Oct 19 10:31:54 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use functions

---- Files affected:
SOURCES:
   nfsfs.init (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SOURCES/nfsfs.init
diff -u SOURCES/nfsfs.init:1.26 SOURCES/nfsfs.init:1.27
--- SOURCES/nfsfs.init:1.26     Mon May  8 18:02:28 2006
+++ SOURCES/nfsfs.init  Thu Oct 19 12:31:49 2006
@@ -36,9 +36,7 @@
        exit 0
 fi
 
-# See how we were called.
-case "$1" in
-  start)
+start() {
        if [ ! -f /var/lock/subsys/nfsfs ]; then
                if is_yes "$NFS4" ; then
                    if grep -q nfs4 /proc/filesystems; then
@@ -61,8 +59,9 @@
        else
            msg_already_running "NFSFS"
        fi
-       ;;
-  stop)
+}
+
+stop() {
        if [ -f /proc/mounts ]; then
                fsfile="/proc/mounts"
        else
@@ -94,6 +93,15 @@
                fi
        fi
        rm -f /var/lock/subsys/nfsfs
+}
+
+# See how we were called.
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
        ;;
   status)
        if [ -f /proc/mounts ]; then
@@ -108,8 +116,8 @@
        fi
        ;;
   restart)
-       $0 stop
-       $0 start
+       stop
+       start
        ;;
   reload|force-reload)
        mount -a -t nfs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/nfsfs.init?r1=1.26&r2=1.27&f=u

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

Reply via email to