satip-axe/fs-add/etc/init.d/nfsd
Jaroslav Kysela 51d6dacf4b added nfsd v3
2015-04-21 14:54:49 +02:00

20 lines
305 B
Bash
Executable File

#!/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