only start crond if there are files in the crontab

SVN-Revision: 10292
master
John Crispin 17 years ago
parent 5303deecf1
commit 6df5a9cf17
  1. 1
      package/busybox/files/cron

@ -3,6 +3,7 @@
START=50
start () {
[ -z $(ls /etc/crontabs/) ] && exit 1
mkdir -p /var/spool/cron
[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
crond -c /etc/crontabs

Loading…
Cancel
Save