[backfire] merge r26961
[openwrt-10.03/.git] / package / firewall / files / firewall.init
index 26855f39ada9e0511e17442fbb7efd8b8642db14..a2fd0a0e94b0c3e1a02ebcca5d7a934db87b8942 100755 (executable)
@@ -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
 }