modules/freifunk:
- install cronjob for gateway check - provide /etc/rc.local.d/ as suggested by ufo
This commit is contained in:
parent
07790dad35
commit
fb581efd7d
1 changed files with 9 additions and 0 deletions
|
@ -9,5 +9,14 @@ boot() {
|
||||||
echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
|
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
|
[ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue