mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-25 14:37:44 +03:00
- 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
30 lines
243 B
Bash
Executable File
30 lines
243 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
START=45
|
|
|
|
FW_LIBDIR=/lib/firewall
|
|
|
|
fw() {
|
|
. $FW_LIBDIR/core.sh
|
|
fw_$1
|
|
}
|
|
|
|
boot() { :; }
|
|
|
|
start() {
|
|
fw start
|
|
}
|
|
|
|
stop() {
|
|
fw stop
|
|
}
|
|
|
|
restart() {
|
|
fw restart
|
|
}
|
|
|
|
reload() {
|
|
fw reload
|
|
}
|