If /var/spool/cron/crontabs is a directory, then /etc/init.d/cron will place a spurio...
authorFlorian Fainelli <florian@openwrt.org>
Sun, 21 Mar 2010 17:16:41 +0000 (17:16 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 21 Mar 2010 17:16:41 +0000 (17:16 +0000)
SVN-Revision: 20354

package/busybox/files/cron

index aa538969be2aab12b7362fe8938c8e289fa8a85b..2e020bbc629a9995eb7be7b98359dac9cc6965ff 100755 (executable)
@@ -6,7 +6,7 @@ start () {
        loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null)
        [ -z "$(ls /etc/crontabs/)" ] && exit 1
        mkdir -p /var/spool/cron
-       [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
+       ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
        crond -c /etc/crontabs -l ${loglevel:-5}
 }