port lots of init scripts over to rc.common (more to come)
[packages.git] / net / aiccu / files / aiccu.init
index dabafcf..9f77e19 100644 (file)
@@ -1,21 +1,10 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
 
-case "$1" in
-    start)
+start() {
        aiccu start     
-       ;;
+}
 
-    stop)
+stop() {
        aiccu stop
-       aiccu stop
-       ;;
-
-    restart)
-       $0 stop
-       $0 start
-       ;;
-    *)
-       echo "Usage: $0 {start|stop|restart}"
-       exit 1
-       ;;
-esac
+}