luci-mod-admin-full: only offer VHT rates which are actually supported by the driver
[project/luci.git] / contrib / package / freifunk-mapupdate / root / etc / uci-defaults / freifunk-mapupdate
1 #!/bin/sh
2 test -f /etc/crontabs/root || touch /etc/crontabs/root
3 SEED="$( dd if=/dev/urandom bs=2 count=1 2>&- | hexdump | if read line; then echo 0x${line#* }; fi )"
4 MIN="$(( $SEED % 59 ))"
5 grep -q "ff_mapupdate.sh" /etc/crontabs/root || echo "$MIN * * * *      /usr/sbin/ff_mapupdate.sh" >> /etc/crontabs/root
6 /etc/init.d/cron restart