git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
81a3c7b
)
applications/luci-splash: fix crontab setup at boot time
author
Jo-Philipp Wich
<redacted>
Wed, 13 May 2009 10:10:30 +0000
(10:10 +0000)
committer
Jo-Philipp Wich
<redacted>
Wed, 13 May 2009 10:10:30 +0000
(10:10 +0000)
applications/luci-splash/root/etc/init.d/luci_splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/etc/init.d/luci_splash
b/applications/luci-splash/root/etc/init.d/luci_splash
index ad47a25909bd568543e700f21cbef9ace9f40cd7..b6eaf325aeb09dcf60fb6b6c0b1e4607f1a8732d 100755
(executable)
--- 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
git clone https://git.99rst.org/PROJECT