projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
firewall: improve logging in hotplug script
[openwrt/openwrt.git]
/
package
/
network
/
config
/
firewall
/
files
/
firewall.hotplug
1
#!/bin/sh
2
3
[
"
$ACTION
"
=
ifup
-o
"
$ACTION
"
=
ifupdate
]
||
exit
0
4
5
/
etc
/
init.d
/
firewall enabled ||
exit
0
6
7
fw3
-q
network
"
$INTERFACE
"
>/
dev
/
null ||
exit
0
8
9
logger
-t
firewall
"Reloading firewall due to
$ACTION
of
$INTERFACE
(
$DEVICE
)"
10
fw3
-q
reload