FreeBSD Bugzilla – Attachment 216419 Details for
Bug 241013
ipfw: Silence firewall_logif on ipfw service restart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Tell the user if the interface already existed
ipfw5.patch (text/plain), 593 bytes, created by
Jose Luis Duran
on 2020-07-13 13:11:03 UTC
(
hide
)
Description:
Tell the user if the interface already existed
Filename:
MIME Type:
Creator:
Jose Luis Duran
Created:
2020-07-13 13:11:03 UTC
Size:
593 bytes
patch
obsolete
>diff --git libexec/rc/rc.d/ipfw libexec/rc/rc.d/ipfw >index df14b7e..b9215d5 100644 >--- libexec/rc/rc.d/ipfw >+++ libexec/rc/rc.d/ipfw >@@ -74,8 +74,14 @@ ipfw_start() > ${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 > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 241013
:
208032
|
216277
|
216298
|
216416
| 216419