summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-25 03:30:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-25 03:30:47 +0000
commit5ee4a9d6525c0e9862087a968ecd2ff79af1b024 (patch)
treed868c006e7882c75b8b5e9399de908e31492df6f /etc/rc
parent68e87cca373e3e87c94a7e7ea2a8bd151d2d7116 (diff)
be silent on kernels which lack nfs; d.doroshenko@omnitel.net
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index d8364f61384..895a7b4f3b0 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.192 2002/02/21 04:18:42 millert Exp $
+# $OpenBSD: rc,v 1.193 2002/02/25 03:30:46 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -120,7 +120,7 @@ ttyflags -a
if [ "X${pf}" != X"NO" ]; then
RULES="block in all\nblock out all"
- case `sysctl vfs.mounts.nfs` in
+ case `sysctl vfs.mounts.nfs 2>/dev/null` in
*[1-9]*)
# don't kill NFS
RULES="$RULES\npass in proto udp from any port { 111, 2049 } to any"