hopefully last fix for S60cron
authorOliver Ertl <oliver@ertl-net.net>
Mon, 2 Jan 2006 20:21:33 +0000 (20:21 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Mon, 2 Jan 2006 20:21:33 +0000 (20:21 +0000)
SVN-Revision: 2812

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

index bd12b8bb7817f20e89a50be34eff95b1f0aa2dbd..6069b8177e01e9cc422eede862d1f3e922104242 100755 (executable)
@@ -1,8 +1,6 @@
 #!/bin/sh
 [ -d /etc/crontabs ] || mkdir -p /etc/crontabs
-
-[ -e /var/spool/cron/crontabs ] && {
-       mkdir -p /var/spool/cron
-       ln -s /etc/crontabs /var/spool/cron
-}
-       crond -c /etc/crontabs
+[ -e /var/spool/cron/crontabs ] || {
+        mkdir -p /var/spool/cron
+        ln -s /etc/crontabs /var/spool/cron/crontabs
+} && crond -c /etc/crontabs