Merge branch 'rollbackssidident' into release-1.1.0

This commit is contained in:
Conrad Lara - KG6JEI 2014-06-24 20:58:45 -07:00
commit 664a53b8f8
3 changed files with 10 additions and 0 deletions

View File

1
files/etc/crontabs/root Normal file
View File

@ -0,0 +1 @@
*/5 * * * * /usr/local/bin/fccid

9
files/usr/local/bin/fccid Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
[ -f /etc/config/run-fccid ] || exit
# stagger the beacons between nodes
N=`ifconfig wlan0 | grep "inet addr" | cut -f4 -d. | cut -c1-3`
sleep $N
echo "ID: `uname -n`" | socat - udp4:10.255.255.255:4919,broadcast,so-bindtodevice=wlan0