diff options
Diffstat (limited to 'package/uvd/files/uvd.init')
-rw-r--r-- | package/uvd/files/uvd.init | 27 |
1 files changed, 27 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 $? |