Corrected ticket #168
authorFlorian Fainelli <florian@openwrt.org>
Mon, 2 Jan 2006 13:47:02 +0000 (13:47 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 2 Jan 2006 13:47:02 +0000 (13:47 +0000)
SVN-Revision: 2806

openwrt/package/base-files/default/etc/init.d/S60cron

index 6647fe1bc0c9de83a26123784c5ec82325bb1f4e..ee821282e0352821a1e33b4e337615cc1d3b3a54 100755 (executable)
@@ -1,5 +1,6 @@
 #!/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/crontabs
+} crond -c /etc/crontabs