diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-02 13:16:32 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-01-02 13:16:32 +0000 |
commit | 28b697c7d5e82ffac2bb03835065cb258712d3be (patch) | |
tree | 61768980b46c15f5d2397f485e398795670bc9fb /openwrt/package/base-files/default | |
parent | fa1006508aa988e04643466a5a1c1c3451fa291b (diff) |
Corrected ticket #168
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2805 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-x | openwrt/package/base-files/default/etc/init.d/S60cron | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron index 6647fe1bc0..bd12b8bb78 100755 --- a/openwrt/package/base-files/default/etc/init.d/S60cron +++ b/openwrt/package/base-files/default/etc/init.d/S60cron @@ -1,5 +1,8 @@ #!/bin/sh -[ -d /etc/crontabs ] && { +[ -d /etc/crontabs ] || mkdir -p /etc/crontabs + +[ -e /var/spool/cron/crontabs ] && { mkdir -p /var/spool/cron - crond -c /etc/crontabs + ln -s /etc/crontabs /var/spool/cron } + crond -c /etc/crontabs |