2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2006-07-11 19:13:10 +00:00
|
|
|
|
2006-10-15 21:03:30 +00:00
|
|
|
START=60
|
2006-07-11 19:13:10 +00:00
|
|
|
NFS_D=/var/lib/nfs
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
|
|
|
mkdir -p $NFS_D
|
|
|
|
touch $NFS_D/rmtab
|
|
|
|
|
|
|
|
/usr/sbin/rpc.statd
|
|
|
|
/usr/sbin/exportfs -r
|
|
|
|
/usr/sbin/rpc.nfsd
|
|
|
|
/usr/sbin/rpc.mountd
|
2006-07-11 19:13:10 +00:00
|
|
|
}
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
stop() {
|
|
|
|
killall rpc.mountd 2> /dev/null
|
2007-03-27 23:35:13 +00:00
|
|
|
killall -9 rpc.nfsd 2> /dev/null
|
2006-10-04 20:57:49 +00:00
|
|
|
/usr/sbin/exportfs -au
|
|
|
|
killall rpc.statd 2> /dev/null
|
2006-07-11 19:13:10 +00:00
|
|
|
}
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
reload() {
|
|
|
|
/usr/sbin/exportfs -r
|
2006-07-11 19:13:10 +00:00
|
|
|
}
|
|
|
|
|