aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/firewall.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/firewall/files/firewall.init')
-rwxr-xr-xpackage/firewall/files/firewall.init21
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
}