diff --git a/files/etc/config.mesh/run-fccid b/files/etc/config.mesh/run-fccid new file mode 100644 index 00000000..e69de29b diff --git a/files/etc/crontabs/root b/files/etc/crontabs/root new file mode 100644 index 00000000..8d2a6c30 --- /dev/null +++ b/files/etc/crontabs/root @@ -0,0 +1 @@ +*/5 * * * * /usr/local/bin/fccid diff --git a/files/usr/local/bin/fccid b/files/usr/local/bin/fccid new file mode 100755 index 00000000..ee08fa19 --- /dev/null +++ b/files/usr/local/bin/fccid @@ -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