port lots of init scripts over to rc.common (more to come)
[packages.git] / net / scanlogd / files / scanlogd.init
index 762d55e..541b102 100755 (executable)
@@ -1,3 +1,11 @@
-#!/bin/sh
-mkdir -p `grep "^scanlogd:" /etc/passwd | cut -d: -f6`
-/usr/sbin/scanlogd
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006 OpenWrt.org
+
+start() {
+       mkdir -p `grep "^scanlogd:" /etc/passwd | cut -d: -f6`
+       /usr/sbin/scanlogd
+}
+
+stop() {
+       killall scanlogd
+}