Page MenuHomeFreeBSD

D30083.diff
No OneTemporary

D30083.diff

diff --git a/libexec/rc/rc.d/ipfw b/libexec/rc/rc.d/ipfw
--- a/libexec/rc/rc.d/ipfw
+++ b/libexec/rc/rc.d/ipfw
@@ -74,8 +74,14 @@
${SYSCTL} net.inet.ip.fw.verbose=1 >/dev/null
fi
if checkyesno firewall_logif; then
- ifconfig ipfw0 create
- echo 'Firewall logging pseudo-interface (ipfw0) created.'
+ if ! ifconfig ipfw0 >/dev/null 2>&1; then
+ ifconfig ipfw0 create
+ echo 'Firewall logging pseudo-interface (ipfw0)' \
+ 'created.'
+ else
+ echo 'Firewall logging pseudo-interface (ipfw0)' \
+ 'already created.'
+ fi
fi
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 11:35 PM (22 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14523198
Default Alt Text
D30083.diff (559 B)

Event Timeline