From c833c2cb490dd2e3c9fd4c3913d92aaee178c857 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Mon, 20 Apr 1998 20:54:23 +0000 Subject: Added reload function. Made status do something other than "command not found". --- rc.d/init.d/nfsfs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d/nfsfs') diff --git a/rc.d/init.d/nfsfs b/rc.d/init.d/nfsfs index 732bd660..925cd585 100755 --- a/rc.d/init.d/nfsfs +++ b/rc.d/init.d/nfsfs @@ -35,14 +35,28 @@ case "$1" in echo ;; status) - status nfsfs + if [ -f /proc/mounts ] ; then + echo "Configured NFS mountpoints:" + grep -v '^#' /etc/fstab | \ + awk '{ if ($3 ~ /^nfs$/ && $4 !~ /noauto/) + print $2}' + echo "Active NFS mountpoints:" + grep -v '^#' /proc/mounts | \ + awk '{ if ($3 ~ /^nfs$/ && $4 !~ /noauto/) + print $2}' + else + echo "/proc filesystem unavailable" + fi ;; restart) $0 stop $0 start ;; + reload) + mount -a -t nfs + ;; *) - echo "Usage: nfsfs {start|stop|restart|status}" + echo "Usage: nfsfs {start|stop|restart|reload|status}" exit 1 esac -- cgit v1.2.1