diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-04 12:32:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-04 12:32:24 +0000 |
commit | f0fc8f5100ff606038a185766df3256eaf501f0f (patch) | |
tree | 5aa0cfc0e263aa7fbf3b43e57bf999b1d95913fd /package/firewall/files/firewall.init | |
parent | b3f58703d8fbdda3757c31d884df06c109ec33cb (diff) | |
download | upstream-f0fc8f5100ff606038a185766df3256eaf501f0f.tar.gz upstream-f0fc8f5100ff606038a185766df3256eaf501f0f.tar.bz2 upstream-f0fc8f5100ff606038a185766df3256eaf501f0f.zip |
AA: firewall3: rename to firewall, move into base system menu, update to git head with compatibility fixes for AA
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36842 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/firewall.init')
-rwxr-xr-x | package/firewall/files/firewall.init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/firewall/files/firewall.init b/package/firewall/files/firewall.init new file mode 100755 index 0000000000..64e3a8c12b --- /dev/null +++ b/package/firewall/files/firewall.init @@ -0,0 +1,25 @@ +#!/bin/sh /etc/rc.common + +START=19 + +boot() { + # Be silent on boot, firewall might be started by hotplug already, + # so don't complain in syslog. + fw3 -q start +} + +start() { + fw3 start +} + +stop() { + fw3 flush +} + +restart() { + fw3 restart +} + +reload() { + fw3 reload +} |