2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2011-11-12 01:30:25 +00:00
|
|
|
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-10-04 20:57:49 +00:00
|
|
|
|
|
|
|
start() {
|
2011-11-12 01:30:25 +00:00
|
|
|
user_exists scanlogd 51 || user_add scanlogd 51
|
|
|
|
group_exists scanlogd 51 || group_add scanlogd
|
|
|
|
[ -d /var/run/scanlogd ] || {
|
|
|
|
mkdir -m 0755 -p /var/run/scanlogd
|
|
|
|
chmod 0755 /var/run/scanlogd
|
|
|
|
chown scanlogd:scanlogd /var/run/scanlogd
|
|
|
|
}
|
|
|
|
service_start /usr/sbin/scanlogd
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-12 01:30:25 +00:00
|
|
|
service_stop /usr/sbin/scanlogd
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|