From 6984409e7658c80ff90b54dd1f9e8134af252845 Mon Sep 17 00:00:00 2001 From: blogic Date: Mon, 28 Jan 2008 17:23:22 +0000 Subject: only start crond if there are files in the crontab git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10292 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/busybox/files/cron | 1 + 1 file changed, 1 insertion(+) (limited to 'package/busybox') diff --git a/package/busybox/files/cron b/package/busybox/files/cron index 9bc89d81c..9a3139271 100755 --- a/package/busybox/files/cron +++ b/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 -- cgit v1.2.3