aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-07 05:14:15 +0000
committerBill Nottingham <notting@redhat.com>2000-08-07 05:14:15 +0000
commitd482606bf5ecf6f8e47c330242720ff79e9bfae3 (patch)
tree4ed564abef698d722f5222f06f62cf8e1b22ea3f /rc.d/init.d/netfs
parentd561b7b93c73f7a233dba7ecdbddad3d15c6cae7 (diff)
downloadinitscripts-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/init.d/netfs')
-rwxr-xr-xrc.d/init.d/netfs6
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