From 251502e2cd0c47b426cfd4d4f183128ca528b91b Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 23 Sep 2008 13:15:50 +0000 Subject: Kill luci-addons package --- applications/luci-splash/root/etc/init.d/luci_splash | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'applications/luci-splash/root/etc/init.d') diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash index 4761692b36..85ea8ecaaf 100755 --- a/applications/luci-splash/root/etc/init.d/luci_splash +++ b/applications/luci-splash/root/etc/init.d/luci_splash @@ -61,6 +61,11 @@ start() { iptables -t nat -A luci_splash_leases -p tcp --dport 80 -j REDIRECT --to-ports 8082 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 + } + ### Start the splash httpd start-stop-daemon -S -b -q -x /usr/bin/luci-splashd } @@ -75,5 +80,8 @@ stop() { iptables -t nat -X luci_splash_leases iptables -t nat -X luci_splash_portal iptables -t nat -X luci_splash + + ### Stop the splash httpd + start-stop-daemon -K -q -x /usr/bin/luci-splashd } -- cgit v1.2.3