diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:59:04 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-05-07 03:59:04 +0000 |
commit | b5d1d2b05b7f7c3364aeab3166268794bb2e6d7b (patch) | |
tree | 07c46d37d11dee83c36bdb258a420780ff72a9d7 /package | |
parent | 1f92831170d5be9cb0511f6f9360d3c2daf3d24c (diff) | |
download | buildroot-novena-b5d1d2b05b7f7c3364aeab3166268794bb2e6d7b.tar.gz buildroot-novena-b5d1d2b05b7f7c3364aeab3166268794bb2e6d7b.zip |
Fix script so that 'restart' actually works.
Diffstat (limited to 'package')
-rwxr-xr-x | package/nfs-utils/init-nfs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/package/nfs-utils/init-nfs b/package/nfs-utils/init-nfs index 962bd3910..49dab7015 100755 --- 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 |