summaryrefslogtreecommitdiff
path: root/package/igmpproxy
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-25 02:56:13 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-25 02:56:13 +0200
commit2a9da8f27abee2f79e4921900633e876e674fa01 (patch)
tree38f6117907fb37d61e5dbae5a9cbd3e54b377cba /package/igmpproxy
parent7c930f499fb6f007deec8235d99bdbd31d6e1255 (diff)
add startup script
Diffstat (limited to 'package/igmpproxy')
-rw-r--r--package/igmpproxy/Makefile2
-rw-r--r--package/igmpproxy/files/igmpproxy.conffiles1
-rw-r--r--package/igmpproxy/files/igmpproxy.init26
-rw-r--r--package/igmpproxy/files/igmpproxy.postinst3
4 files changed, 31 insertions, 1 deletions
diff --git a/package/igmpproxy/Makefile b/package/igmpproxy/Makefile
index 567b1c12f..185597939 100644
--- a/package/igmpproxy/Makefile
+++ b/package/igmpproxy/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= igmpproxy
PKG_VERSION:= 0.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= c56f41ec195bc1fe016369bf74efc5a1
PKG_DESCR:= a simple dynamic Multicast Routing Daemon
PKG_SECTION:= net
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