16 lines
381 B
Plaintext
16 lines
381 B
Plaintext
|
#!/bin/sh /etc/rc.common
|
||
|
# Copyright (C) 2008 OpenWrt.org
|
||
|
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
|
||
|
}
|