satip-axe/fs-add/etc/init.d/nfsd

20 lines
305 B
Plaintext
Raw Normal View History

2015-04-21 14:54:49 +02:00
#!/bin/sh
test -r /etc/sysconfig/config && . /etc/sysconfig/config
if test "$NFSD" != "yes"; then
exit 0
fi
if test -r /etc/sysconfig/exports ; then
rm /etc/exports
ln -s /etc/sysconfig/exports /etc/exports
fi
opts="--no-nfs-version 4"
rpcbind &
exportfs -r
nfsd $opts 8 &
exec mountd -F $opts