# hdw-linux nfs-utils extensions # author: hackbard # [S] 3-3 # [V] 1.0.7 # [D] nfs-utils-1.0.7.tar.gz ftp://ftp.kernel.org/pub/linux/utils/nfs/ confopt="$confopt --disable-gss" post_install() { # init scripts cat > $root/etc/init.d/nfsd << 'EOF' #!/bin/sh # # hdw - linux /etc/init.d/nfsd # # remove for automatic startup exit 0 [ ! -f /usr/sbin/portmap ] && exit 0 case "$1" in start) echo "starting nfsd." insmod -q nfsd > /dev/null 2>&1 rpc.rquotad rpc.mountd rpc.nfsd 8 exportfs -a ;; stop) echo "stopping knfsd." killall -15 rpc.mountd killall -15 rpc.nfsd killall -15 rpc.rquotad killall -9 nfsd exportfs -u -a ;; *) echo "usage: $0 [start|stop]" exit 0 ;; esac exit 0 EOF # permissions & link chmod 750 $root/etc/init.d/nfsd ln -sf ../nfsd $root/etc/init.d/rc2.d/S50nfsd ln -sf ../nfsd $root/etc/init.d/rc2.d/K50nfsd }