diff options
author | John Crispin <john@openwrt.org> | 2008-01-28 17:23:22 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-01-28 17:23:22 +0000 |
commit | 6df5a9cf17ea2336b8629f1c61c3209ae09b3b4a (patch) | |
tree | 1e4a152e7c8c2e7dd72f3fd5c20c740f35430e9c | |
parent | 5303deecf170c291df307f23480590b53f8287e5 (diff) | |
download | mtk-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
-rwxr-xr-x | package/busybox/files/cron | 1 |
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 |