Date:2010-03-21 18:16:41 (3 years 2 months ago)
Author:florian
Commit:c55e10aab7cee13246923cc674f70710bb381018
Message:[package] If /var/spool/cron/crontabs is a directory, then /etc/init.d/cron

will place a spurious "crontabs" symlink into it. Patch fro Stefan Monnier

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20354 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/busybox/files/cron (1 diff)

Change Details

package/busybox/files/cron
66    loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null)
77    [ -z "$(ls /etc/crontabs/)" ] && exit 1
88    mkdir -p /var/spool/cron
9    [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
9    ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null
1010    crond -c /etc/crontabs -l ${loglevel:-5}
1111}
1212

Archive Download the corresponding diff file



interactive