summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorOliver Ertl <oliver@ertl-net.net>2006-01-02 20:21:33 +0000
committerOliver Ertl <oliver@ertl-net.net>2006-01-02 20:21:33 +0000
commit39701f32649edbd4576397f88a4f9b282f0005d8 (patch)
treef7916922347519c0dc3e3efdb55eee376321b3cc /openwrt/package/base-files/default/etc
parent13238256d1929ec0576599f43d4397780eb06c29 (diff)
downloadmtk-20170518-39701f32649edbd4576397f88a4f9b282f0005d8.zip
mtk-20170518-39701f32649edbd4576397f88a4f9b282f0005d8.tar.gz
mtk-20170518-39701f32649edbd4576397f88a4f9b282f0005d8.tar.bz2
hopefully last fix for S60cron
SVN-Revision: 2812
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S60cron10
1 files changed, 4 insertions, 6 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron
index bd12b8b..6069b81 100755
--- a/openwrt/package/base-files/default/etc/init.d/S60cron
+++ b/openwrt/package/base-files/default/etc/init.d/S60cron
@@ -1,8 +1,6 @@
#!/bin/sh
[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
-
-[ -e /var/spool/cron/crontabs ] && {
- mkdir -p /var/spool/cron
- ln -s /etc/crontabs /var/spool/cron
-}
- crond -c /etc/crontabs
+[ -e /var/spool/cron/crontabs ] || {
+ mkdir -p /var/spool/cron
+ ln -s /etc/crontabs /var/spool/cron/crontabs
+} && crond -c /etc/crontabs