X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Froot%2Fetc%2Finit.d%2Ffreifunk;h=3a668b11f5dc9f931838ca2a7bb6616753edc97c;hp=801dd5bc7455726ea3a19ab26f6a0f0d39a6c73b;hb=6ca3b275fc9bd83ccc9a4decf6d04d819f0efcf9;hpb=910ac84a460916f7dba4a536b7cf08402ccd7f02 diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 801dd5bc7..3a668b11f 100755 --- a/modules/freifunk/root/etc/init.d/freifunk +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -5,13 +5,27 @@ 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 } -# grep -q '/usr/sbin/ff_olsr_test_gw' /etc/crontabs/root || { -# echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root -# } + grep -q '/usr/sbin/ff_olsr_test_gw' /etc/crontabs/root || { + echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root + } + + grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || { + echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root + } + + grep -q '/usr/sbin/ff_rdate' /etc/crontabs/root || { + echo "0 */4 * * * /usr/sbin/ff_rdate" >> /etc/crontabs/root + } + + grep -q '/usr/sbin/ff_mapupdate' /etc/crontabs/root || { + echo "17 * * * * /usr/sbin/ff_mapupdate >> /etc/crontabs/root + } [ -f /etc/rc.local ] && . /etc/rc.local [ -d /etc/rc.local.d ] && { @@ -19,4 +33,6 @@ boot() { test -f "$file" && . "$file" done } + + ( /usr/sbin/ff_rdate; /etc/init.d/cron restart ) & }