diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-05 15:34:35 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-05 15:34:35 +0200 |
commit | 3b76e79f14e279a6526809e630e45e4f760d77de (patch) | |
tree | bb479b57c7ad1362f05a0532a7133c0c5232dfeb /package/uvd/files/uvd.init | |
parent | 9bfe4f2061f377306619fa479bc0e7adafb22125 (diff) | |
parent | 1879491b2b6e799b20ac06d1b510726eb200944f (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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 $? |