From d27ff9d2d9b04621c49bf43cad069a7123beadab Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 13 May 2009 10:11:08 +0000 Subject: [PATCH] luci-0.8: merge r4514 --- applications/luci-splash/root/etc/init.d/luci_splash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash index ad47a2590..b6eaf325a 100755 --- a/applications/luci-splash/root/etc/init.d/luci_splash +++ b/applications/luci-splash/root/etc/init.d/luci_splash @@ -78,8 +78,9 @@ start() { iptables -t nat -A luci_splash_leases -j DROP ### Add crontab entry - grep luci-splash /var/spool/cron/crontabs/root >/dev/null 2>&1 || { - echo '*/5 * * * * /usr/sbin/luci-splash sync' >> /var/spool/cron/crontabs/root + test -f /etc/crontabs/root || touch /etc/crontabs/root + grep -q luci-splash /etc/crontabs/root || { + echo '*/5 * * * * /usr/sbin/luci-splash sync' >> /etc/crontabs/root } ### Start the splash httpd -- 2.11.0