From 64175a0ded3a2f390d985452c0bcb11350bac3e5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 1 May 2010 18:22:01 +0000 Subject: [package] firewall: - replace uci firewall with a modular dual stack implementation developed by Malte S. Stretz - bump version to 2 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21286 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/firewall.init | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'package/firewall/files/firewall.init') 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 } -- cgit v1.2.3