summaryrefslogtreecommitdiff
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)
downloadmtk-20170518-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.zip
mtk-20170518-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.gz
mtk-20170518-6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a.tar.bz2
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 9bc89d8..9a31392 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