diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-01 18:22:01 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-01 18:22:01 +0000 |
commit | c284cb51c00625f52090f3fe3d475450eaab7b21 (patch) | |
tree | 02c49883956e50f28055df479accfa35c3c6fcdd /package/firewall/files/firewall.init | |
parent | 085b2b9ad6216508ff357dcb49757173d269fbb9 (diff) | |
download | upstream-c284cb51c00625f52090f3fe3d475450eaab7b21.tar.gz upstream-c284cb51c00625f52090f3fe3d475450eaab7b21.tar.bz2 upstream-c284cb51c00625f52090f3fe3d475450eaab7b21.zip |
firewall: - replace uci firewall with a modular dual stack implementation developed by Malte S. Stretz - bump version to 2
SVN-Revision: 21286
Diffstat (limited to 'package/firewall/files/firewall.init')
-rwxr-xr-x | package/firewall/files/firewall.init | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/package/firewall/files/firewall.init b/package/firewall/files/firewall.init index 26855f39ad..54742488e8 100755 --- a/package/firewall/files/firewall.init +++ b/package/firewall/files/firewall.init @@ -3,12 +3,25 @@ START=45 +FW_LIBDIR=/lib/firewall + +fw() { + . $FW_LIBDIR/core.sh + fw_$1 +} + start() { - . /lib/firewall/uci_firewall.sh - fw_init + fw start } stop() { - . /lib/firewall/uci_firewall.sh - fw_stop + fw stop +} + +restart() { + fw restart +} + +reload() { + fw reload } |