case "$1" in
start)
cd / # daemons should have root dir as cwd
- if grep -q '^/' /etc/exports; then
+ if grep -q '^/' /etc/exports
+ then
printf "Exporting directories for $DESC..."
$PREFIX/sbin/exportfs -r
echo "done."
start-stop-daemon --start --quiet \
--exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
printf " mountd"
- $PREFIX/bin/rpcinfo -u localhost nfs 3 > /dev/null 2>&1 ||
+ $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
start-stop-daemon --start --quiet \
--exec $PREFIX/sbin/rpc.mountd -- $RPCMOUNTDOPTS