X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Froot%2Fetc%2Finit.d%2Ffreifunk;h=273f83285600103d9ad25cb145c8ed4cf88fc410;hp=40fa50853628acbb517246096e6b286175ea1d80;hb=a3c4c0b87b856d602f961344b4a43d8603f9db3c;hpb=b3ea7cd0ed31535a1faf5c962a9a9fabeea17267 diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 40fa50853..273f83285 100755 --- a/modules/freifunk/root/etc/init.d/freifunk +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -5,6 +5,8 @@ START=99 boot() { + test -f /etc/crontabs/root || touch /etc/crontabs/root + grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || { echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root } @@ -21,7 +23,10 @@ boot() { echo "0 */4 * * * /usr/sbin/ff_rdate" >> /etc/crontabs/root } - [ -f /etc/rc.local ] && . /etc/rc.local + grep -q '/usr/sbin/ff_mapupdate' /etc/crontabs/root || { + echo "17 * * * * /usr/sbin/ff_mapupdate" >> /etc/crontabs/root + } + [ -d /etc/rc.local.d ] && { for file in /etc/rc.local.d/*; do test -f "$file" && . "$file"