3 STATUS
=`nvram get nfs_enable`
4 if [ "$STATUS" == "0" ]; then
6 logger Stoping NFS Server ...
8 /usr
/bin
/killall portmap
2>/dev
/null
10 /usr
/bin
/killall statd
2>/dev
/null
12 /usr
/bin
/killall nfsd
2>/dev
/null
14 /usr
/bin
/killall mountd
2>/dev
/null
16 logger NFS Server stoped ...
19 logger Starting NFS Server ...
21 if [ ! -d /var
/lib
/nfs
]; then
23 touch /var
/lib
/nfs
/etab
24 touch /var
/lib
/nfs
/rmtab
28 if [ -z "`pidof portmap`" ]; then
35 if [ -z "`pidof statd`" ]; then
45 if [ -z "`pidof nfsd`" ]; then
52 if [ -z "`pidof mountd`" ]; then
57 logger NFS Server Started ...