summaryrefslogtreecommitdiff
path: root/package/uvd/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-05 15:34:35 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-05 15:34:35 +0200
commit3b76e79f14e279a6526809e630e45e4f760d77de (patch)
treebb479b57c7ad1362f05a0532a7133c0c5232dfeb /package/uvd/files
parent9bfe4f2061f377306619fa479bc0e7adafb22125 (diff)
parent1879491b2b6e799b20ac06d1b510726eb200944f (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/uvd/files')
-rw-r--r--package/uvd/files/uvd.init27
-rw-r--r--package/uvd/files/uvd.postinst3
2 files changed, 30 insertions, 0 deletions
diff --git a/package/uvd/files/uvd.init b/package/uvd/files/uvd.init
new file mode 100644
index 000000000..a8b54255f
--- /dev/null
+++ b/package/uvd/files/uvd.init
@@ -0,0 +1,27 @@
+#!/bin/sh
+#PKG uvd
+#INIT 90
+
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${uvd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ uvd
+ ;;
+stop)
+ pkill uvd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 (start|stop|restart)"
+ exit 1
+esac
+exit $?
diff --git a/package/uvd/files/uvd.postinst b/package/uvd/files/uvd.postinst
new file mode 100644
index 000000000..ce254d5e7
--- /dev/null
+++ b/package/uvd/files/uvd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf uvd uvd NO