summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/root/etc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-23 13:15:50 +0000
committerSteven Barth <steven@midlink.org>2008-09-23 13:15:50 +0000
commit251502e2cd0c47b426cfd4d4f183128ca528b91b (patch)
tree7d398abd86052302d19b7591a2fb4b621413a1cc /applications/luci-splash/root/etc
parent6b3985b6be52063c09f779b6bc509bf84eedc660 (diff)
Kill luci-addons package
Diffstat (limited to 'applications/luci-splash/root/etc')
-rwxr-xr-xapplications/luci-splash/root/etc/init.d/luci_splash8
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-splash/root/etc/init.d/luci_splash b/applications/luci-splash/root/etc/init.d/luci_splash
index 4761692b3..85ea8ecaa 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
}