1 # hdw-linux nfs-utils extensions
7 # [D] nfs-utils-1.0.7.tar.gz ftp://ftp.kernel.org/pub/linux/utils/nfs/
9 confopt="$confopt --disable-gss"
13 cat > $root/etc/init.d/nfsd << 'EOF'
16 # hdw - linux /etc/init.d/nfsd
19 # remove for automatic startup
22 [ ! -f /sbin/portmap ] && exit 0
25 start) echo "starting nfsd."
26 insmod -q nfsd > /dev/null 2>&1
31 stop) echo "stopping knfsd."
32 killall -15 rpc.mountd
34 killall -15 rpc.rquotad
37 *) echo "usage: $0 [start|stop]"
43 chmod 750 $root/etc/init.d/nfsd
44 ln -sf ../nfsd $root/etc/init.d/rc2.d/S50nfsd
45 ln -sf ../nfsd $root/etc/init.d/rc2.d/K50nfsd