summaryrefslogtreecommitdiff
path: root/package/igmpproxy/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/igmpproxy/files')
-rw-r--r--package/igmpproxy/files/igmpproxy.conffiles1
-rw-r--r--package/igmpproxy/files/igmpproxy.init26
-rw-r--r--package/igmpproxy/files/igmpproxy.postinst3
3 files changed, 30 insertions, 0 deletions
diff --git a/package/igmpproxy/files/igmpproxy.conffiles b/package/igmpproxy/files/igmpproxy.conffiles
new file mode 100644
index 000000000..dc47ad317
--- /dev/null
+++ b/package/igmpproxy/files/igmpproxy.conffiles
@@ -0,0 +1 @@
+/etc/igmpproxy.conf
diff --git a/package/igmpproxy/files/igmpproxy.init b/package/igmpproxy/files/igmpproxy.init
new file mode 100644
index 000000000..807ffc038
--- /dev/null
+++ b/package/igmpproxy/files/igmpproxy.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#PKG igmpproxy
+#INIT 70
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${igmpproxy:-NO}" = x"NO"
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/igmpproxy /etc/igmpproxy.conf
+ ;;
+stop)
+ pkill igmpproxy
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ ;;
+esac
+exit $?
diff --git a/package/igmpproxy/files/igmpproxy.postinst b/package/igmpproxy/files/igmpproxy.postinst
new file mode 100644
index 000000000..5ebfa6d66
--- /dev/null
+++ b/package/igmpproxy/files/igmpproxy.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf igmpproxy igmpproxy NO