summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-01-19 20:52:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-01-19 20:52:30 +0000
commitcd7131e362a17b913b5dac6bde0daac573088d4b (patch)
tree1bcd66e42df09719f9818fd31ba3db5ee80d769b
parent80c605a9d022a080f57caa6ababca6bbdecb1bb4 (diff)
Only try to run pflogd if pflog0 exists; from mpech@
OK deraadt@ and fgsch@
-rw-r--r--etc/rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 0f18efb4e3f..e1aab6d1e5a 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.260 2004/11/22 09:26:23 jsg Exp $
+# $OpenBSD: rc,v 1.261 2005/01/19 20:52:29 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -236,8 +236,10 @@ fi
syslogd ${syslogd_flags}
if [ X"${pf}" != X"NO" -a X"${pflogd_flags}" != X"NO" ]; then
- ifconfig pflog0 up
- pflogd ${pflogd_flags}
+ if ifconfig pflog0 >/dev/null 2>&1; then
+ ifconfig pflog0 up
+ pflogd ${pflogd_flags}
+ fi
fi
# $named_flags is imported from /etc/rc.conf;