diff options
Diffstat (limited to 'package/uvd/files')
-rw-r--r-- | package/uvd/files/uvd.init | 27 | ||||
-rw-r--r-- | package/uvd/files/uvd.postinst | 3 |
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 |