aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-01-28 17:23:22 +0000
committerJohn Crispin <john@openwrt.org>2008-01-28 17:23:22 +0000
commit6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a (patch)
tree1e4a152e7c8c2e7dd72f3fd5c20c740f35430e9c /package/busybox/files
parent5303deecf170c291df307f23480590b53f8287e5 (diff)
downloadupstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.gz
upstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.bz2
upstream-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.zip
only start crond if there are files in the crontab
SVN-Revision: 10292
Diffstat (limited to 'package/busybox/files')
-rwxr-xr-xpackage/busybox/files/cron1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/busybox/files/cron b/package/busybox/files/cron
index 9bc89d81ca..9a31392717 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