cron 283 B

1234567891011121314
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=50
  4. start () {
  5. [ -z "$(ls /etc/crontabs/)" ] && exit 1
  6. mkdir -p /var/spool/cron
  7. [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
  8. crond -c /etc/crontabs
  9. }
  10. stop() {
  11. killall -9 crond
  12. }