2008-04-21 20:46:26 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-03-30 23:09:08 +00:00
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
2008-04-21 20:46:26 +00:00
|
|
|
START=50
|
|
|
|
|
|
|
|
start() {
|
|
|
|
[ -d /var/spool/cron/atjobs ] || mkdir -p /var/spool/cron/atjobs
|
|
|
|
[ -d /var/spool/cron/atspool ] || mkdir -p /var/spool/cron/atspool
|
|
|
|
[ -f /var/spool/cron/atspool ] || > /var/spool/cron/atjobs/.SEQ
|
|
|
|
chown -R nobody:nogroup /var/spool/cron/atjobs /var/spool/cron/atspool
|
|
|
|
atd
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
killall atd
|
|
|
|
}
|