diff options
Diffstat (limited to 'package/aiccu/files')
-rw-r--r-- | package/aiccu/files/aiccu.init | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/aiccu/files/aiccu.init b/package/aiccu/files/aiccu.init new file mode 100644 index 000000000..e678664bf --- /dev/null +++ b/package/aiccu/files/aiccu.init @@ -0,0 +1,27 @@ +#!/bin/sh +#FWINIT 60 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${aiccu:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + aiccu start + ;; +stop) + aiccu stop + ;; + +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |