summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root/etc/init.d
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-30 16:05:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-30 16:05:14 +0000
commitfb581efd7dbaff2e38316494a04f4587edea8900 (patch)
treef084e1dc0de9f7bbc2f0004b9eca3074b18f1a3a /modules/freifunk/root/etc/init.d
parent07790dad35cd637a736bfc27ca50d3e2fc4ecc1d (diff)
modules/freifunk:
- install cronjob for gateway check - provide /etc/rc.local.d/ as suggested by ufo
Diffstat (limited to 'modules/freifunk/root/etc/init.d')
-rwxr-xr-xmodules/freifunk/root/etc/init.d/freifunk9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk
index 799676fe9e..f1b274471c 100755
--- a/modules/freifunk/root/etc/init.d/freifunk
+++ b/modules/freifunk/root/etc/init.d/freifunk
@@ -9,5 +9,14 @@ boot() {
echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
}
+ grep -q '/usr/sbin/ff_olsr_test_gw' /etc/crontabs/root || {
+ echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root
+ }
+
[ -f /etc/rc.local ] && . /etc/rc.local
+ [ -d /etc/rc.local.d ] && {
+ for file in /etc/rc.local.d/*; do
+ test -f "$file" && . "$file"
+ done
+ }
}