From d482606bf5ecf6f8e47c330242720ff79e9bfae3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 7 Aug 2000 05:14:15 +0000 Subject: start portmap if it's not running for nfs mounts --- rc.d/init.d/netfs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index 929171fc..7e192239 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -32,7 +32,11 @@ NCPMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^ncpfs$/ ) print $2}'` # See how we were called. case "$1" in start) - [ -n "$NFSFSTAB" ] && action "Mounting NFS filesystems: " mount -a -t nfs + [ -n "$NFSFSTAB" ] && + { + [ ! -f /var/lock/subsys/portmap ] && service portmap start + action "Mounting NFS filesystems: " mount -a -t nfs + } [ -n "$SMBFSTAB" ] && action "Mounting SMB filesystems: " mount -a -t smbfs [ -n "$NCPFSTAB" ] && action "Mounting NCP filesystems: " mount -a -t ncpfs touch /var/lock/subsys/netfs -- cgit v1.2.1