Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # /etc/rc.d/nfs: start/stop nfs client | |
4 | # | |
5 | ||
6 | case $1 in | |
7 | start) | |
8 | /usr/sbin/sm-notify | |
9 | /usr/sbin/rpc.statd | |
10 | /bin/mount -a -t nfs | |
11 | ;; | |
12 | stop) | |
13 | /bin/umount -a -t nfs | |
14 | killall -q /usr/sbin/rpc.statd | |
15 | ;; | |
16 | restart) | |
17 | $0 stop | |
18 | sleep 2 | |
19 | $0 start | |
20 | ;; | |
21 | *) | |
22 | echo "usage: $0 [start|stop|restart]" | |
23 | ;; | |
24 | esac | |
25 | ||
26 | # End of file |