X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aa954c1c5dd50c89f91ac2574482ab7c927a3c54..271da7f4e93492f377c0fcf25def4591d60b9fbc:/package/firewall/files/firewall.init?ds=sidebyside diff --git a/package/firewall/files/firewall.init b/package/firewall/files/firewall.init index 26855f39a..a2fd0a0e9 100755 --- a/package/firewall/files/firewall.init +++ b/package/firewall/files/firewall.init @@ -1,14 +1,27 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2008 OpenWrt.org +# Copyright (C) 2008-2010 OpenWrt.org 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 }