27 lines
312 B
Bash
27 lines
312 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/nfs: start/stop nfs client
|
|
#
|
|
|
|
case $1 in
|
|
start)
|
|
/usr/sbin/sm-notify
|
|
/usr/sbin/rpc.statd
|
|
/bin/mount -a -t nfs
|
|
;;
|
|
stop)
|
|
/bin/umount -a -t nfs
|
|
killall -q /usr/sbin/rpc.statd
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 2
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 [start|stop|restart]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|