aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/firewall.init
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-17 12:47:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-17 12:47:14 +0000
commitfa11019822ae97b23fdc341aaaf0f27583e77c37 (patch)
tree645ededcac1b261fab0a9efa73cda5c03f2ff37e /package/firewall/files/firewall.init
parent5bb4773eb4e04c0b81358ab0ece6b52ee1da6327 (diff)
downloadupstream-fa11019822ae97b23fdc341aaaf0f27583e77c37.tar.gz
upstream-fa11019822ae97b23fdc341aaaf0f27583e77c37.tar.bz2
upstream-fa11019822ae97b23fdc341aaaf0f27583e77c37.zip
[package] firewall:
- defer firewall start until the first interface is brought up by hotplug, fixes race conditions on slow devices - create a file lock during firewall start and wait for it in hotplug events, prevents race conditions between start and addif - start firewall actions in background from hotplug handler since the firewall itself fires further hotplug events which results in a deadlock if not forked off - get loaded state direcly from the uci binary since updated value is not recognized by config_get after uci_set_state - bump package revision to r2 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21486 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/firewall.init')
-rwxr-xr-xpackage/firewall/files/firewall.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/firewall/files/firewall.init b/package/firewall/files/firewall.init
index 54742488e8..d04804d756 100755
--- a/package/firewall/files/firewall.init
+++ b/package/firewall/files/firewall.init
@@ -10,6 +10,8 @@ fw() {
fw_$1
}
+boot() { :; }
+
start() {
fw start
}