From 321a78f6a801e39007f353694d0a815fae678f2b Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 2 Jan 2006 13:16:32 +0000 Subject: Corrected ticket #168 git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2805 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/default/etc/init.d/S60cron | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'package/base-files/default/etc') diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron index 6647fe1bc..bd12b8bb7 100755 --- a/package/base-files/default/etc/init.d/S60cron +++ b/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 -- cgit v1.2.3