modules/freifunk: remove custom rc.local handling
[project/luci.git] / modules / freifunk / root / etc / init.d / freifunk
index d90e3ff..273f832 100755 (executable)
@@ -23,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"