diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-01-19 20:52:30 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-01-19 20:52:30 +0000 |
commit | cd7131e362a17b913b5dac6bde0daac573088d4b (patch) | |
tree | 1bcd66e42df09719f9818fd31ba3db5ee80d769b /etc | |
parent | 80c605a9d022a080f57caa6ababca6bbdecb1bb4 (diff) |
Only try to run pflogd if pflog0 exists; from mpech@
OK deraadt@ and fgsch@
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |