utils/psmisc: fix peekfd issue on mips/big-endian targets, included upstream patch...
[openwrt/svn-archive/archive.git] / net / scanlogd / files / scanlogd.init
old mode 100755 (executable)
new mode 100644 (file)
index 762d55e..8c6f382
@@ -1,3 +1,12 @@
-#!/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=50
+
+start() {
+       mkdir -p `grep "^scanlogd:" /etc/passwd | cut -d: -f6`
+       /usr/sbin/scanlogd
+}
+
+stop() {
+       killall scanlogd
+}