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.init27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/firewall/files/firewall.init b/package/firewall/files/firewall.init
new file mode 100755
index 000000000..a2fd0a0e9
--- /dev/null
+++ b/package/firewall/files/firewall.init
@@ -0,0 +1,27 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2008-2010 OpenWrt.org
+
+START=45
+
+FW_LIBDIR=/lib/firewall
+
+fw() {
+ . $FW_LIBDIR/core.sh
+ fw_$1
+}
+
+start() {
+ fw start
+}
+
+stop() {
+ fw stop
+}
+
+restart() {
+ fw restart
+}
+
+reload() {
+ fw reload
+}