diff options
author | Bill Nottingham <notting@redhat.com> | 2000-08-07 05:14:15 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-08-07 05:14:15 +0000 |
commit | d482606bf5ecf6f8e47c330242720ff79e9bfae3 (patch) | |
tree | 4ed564abef698d722f5222f06f62cf8e1b22ea3f /rc.d | |
parent | d561b7b93c73f7a233dba7ecdbddad3d15c6cae7 (diff) | |
download | initscripts-d482606bf5ecf6f8e47c330242720ff79e9bfae3.tar initscripts-d482606bf5ecf6f8e47c330242720ff79e9bfae3.tar.gz initscripts-d482606bf5ecf6f8e47c330242720ff79e9bfae3.tar.bz2 initscripts-d482606bf5ecf6f8e47c330242720ff79e9bfae3.tar.xz initscripts-d482606bf5ecf6f8e47c330242720ff79e9bfae3.zip |
start portmap if it's not running for nfs mounts
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/netfs | 6 |
1 files changed, 5 insertions, 1 deletions
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 |