CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2069 -
(show annotations)
Fri Nov 12 13:16:37 2010 UTC (2 years, 7 months ago) by gesp
File size: 465 byte(s)
Fri Nov 12 13:16:37 2010 UTC (2 years, 7 months ago) by gesp
File size: 465 byte(s)
nfs-utils: fixed to 1.2.3-1
| 1 | #!/bin/sh |
| 2 | # |
| 3 | # /etc/rc.d/nfs: start/stop nfs client |
| 4 | # |
| 5 | |
| 6 | PIPEFS=/var/lib/nfs/rpc_pipefs |
| 7 | |
| 8 | case $1 in |
| 9 | start) |
| 10 | /bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS |
| 11 | /usr/sbin/sm-notify |
| 12 | /usr/sbin/rpc.idmapd |
| 13 | /usr/sbin/rpc.statd |
| 14 | /bin/mount -a -t nfs |
| 15 | ;; |
| 16 | stop) |
| 17 | /bin/umount -a -t nfs |
| 18 | killall -q /usr/sbin/rpc.statd |
| 19 | killall -q /usr/sbin/rpc.idmapd |
| 20 | /bin/umount $PIPEFS |
| 21 | ;; |
| 22 | restart) |
| 23 | $0 stop |
| 24 | sleep 2 |
| 25 | $0 start |
| 26 | ;; |
| 27 | *) |
| 28 | echo "usage: $0 [start|stop|restart]" |
| 29 | ;; |
| 30 | esac |
| 31 | |
| 32 | # End of file |