projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f92831
)
Fix script so that 'restart' actually works.
author
"Steven J. Hill"
<sjhill@realitydiluted.com>
Mon, 7 May 2007 03:59:04 +0000
(
03:59
-0000)
committer
"Steven J. Hill"
<sjhill@realitydiluted.com>
Mon, 7 May 2007 03:59:04 +0000
(
03:59
-0000)
package/nfs-utils/init-nfs
patch
|
blob
|
history
diff --git
a/package/nfs-utils/init-nfs
b/package/nfs-utils/init-nfs
index 962bd39109815a941a08b349675b196e69908f97..49dab701519ce6f56d94bba1a68a21f42d68effb 100755
(executable)
--- a/
package/nfs-utils/init-nfs
+++ b/
package/nfs-utils/init-nfs
@@
-21,9
+21,7
@@
touch /var/lib/nfs/rmtab
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
@@
case "$1" in
rpc.mountd
echo "done"
touch /var/lock/subsys/nfs
- ;;
- stop)
+}
+
+stop() {
# Stop daemons.
echo -n "Shutting down NFS mountd: "
killall -q rpc.mountd
@@
-64,6
+63,15
@@
case "$1" in
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