mount nfsd on /proc/fs/nfsd
install sm-notify based on a patch by Benjamin Cama <benoar@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/packages@19855 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -8,6 +8,8 @@ NFS_D=/var/lib/nfs
|
||||
LOCK_D=/var/lib/nfs/sm
|
||||
|
||||
start() {
|
||||
grep -q /proc/fs/nsfd /proc/mounts || \
|
||||
mount -t nfsd nfsd /proc/fs/nfsd
|
||||
mkdir -p $NFS_D
|
||||
mkdir -p $LOCK_D
|
||||
touch $NFS_D/rmtab
|
||||
@ -24,6 +26,8 @@ stop() {
|
||||
rpc.nfsd 0 2> /dev/null
|
||||
/usr/sbin/exportfs -au
|
||||
killall rpc.statd 2> /dev/null
|
||||
grep -q /proc/fs/nfsd /proc/mounts &&
|
||||
umount /proc/fs/nfsd
|
||||
}
|
||||
|
||||
reload() {
|
||||
|
Reference in New Issue
Block a user