summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-09-15 02:21:39 +0000
committerphk <phk@FreeBSD.org>1994-09-15 02:21:39 +0000
commit7d9611717fe8255d11f5524cacd568065b4af359 (patch)
treed433f37dfc06c11cba698e3c44037ead11db037c /etc/rc
parentf82deafeb9f89d0d6c55b31251f0b7300c2c2ad6 (diff)
downloadFreeBSD-src-7d9611717fe8255d11f5524cacd568065b4af359.zip
FreeBSD-src-7d9611717fe8255d11f5524cacd568065b4af359.tar.gz
nfsiod should be started if this is a NFS-client, not if it is a server.
look for "nfs" in etc/fstab, and start it if we see it. Not quite perfect, but better. mount_nfs should start it, if it isn't running.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 1af07ef..1c4561f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.27 1994/06/06 17:45:37 phk Exp $
+# $Id: rc,v 1.28 1994/08/21 04:28:44 davidg Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -203,6 +203,9 @@ echo -n ' printer'; lpd
if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then
echo -n ' mountd'; mountd
echo -n ' nfsd'; nfsd -u -t 4
+fi
+
+if grep nfs /etc/fstab > /dev/null ; then
echo -n ' nfsiod'; nfsiod -n 4
fi
OpenPOWER on IntegriCloud