[Buildroot] svn commit: trunk/buildroot/package/nfs-utils

sjhill at uclibc.org sjhill at uclibc.org
Mon May 7 03:59:04 UTC 2007


Author: sjhill
Date: 2007-05-06 20:59:04 -0700 (Sun, 06 May 2007)
New Revision: 18572

Log:
Fix script so that 'restart' actually works.


Modified:
   trunk/buildroot/package/nfs-utils/init-nfs


Changeset:
Modified: trunk/buildroot/package/nfs-utils/init-nfs
===================================================================
--- trunk/buildroot/package/nfs-utils/init-nfs	2007-05-07 03:58:30 UTC (rev 18571)
+++ trunk/buildroot/package/nfs-utils/init-nfs	2007-05-07 03:59:04 UTC (rev 18572)
@@ -21,9 +21,7 @@
 touch /var/lib/nfs/state
 touch /var/lib/nfs/xtab
 
-# See how we were called.
-case "$1" in
-  start)
+start() {
 	# Start daemons.
 	echo -n "Starting NFS statd: "
 	rpc.statd
@@ -43,8 +41,9 @@
 	rpc.mountd
 	echo "done"
 	touch /var/lock/subsys/nfs
-	;;
-  stop)
+}
+
+stop() {
 	# Stop daemons.
 	echo -n "Shutting down NFS mountd: "
 	killall -q rpc.mountd
@@ -64,7 +63,16 @@
 	killall -q rpc.statd
 	echo "done"
 	rm -f /var/lock/subsys/nfslock
+}
+
+# See how we were called.
+case "$1" in
+  start)
+	start
 	;;
+  stop)
+	stop
+	;;
   restart)
 	stop
 	start




More information about the buildroot mailing list