2013-11-14 23:11:16 -07:00
|
|
|
#!/bin/sh
|
2015-01-18 12:36:49 -07:00
|
|
|
<<'LICENSE'
|
|
|
|
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
|
|
|
Copyright (C) 2015 Conrad Lara
|
|
|
|
See Contributors file for additional contributors
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation version 3 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
LICENSE
|
2013-11-14 23:11:16 -07:00
|
|
|
|
|
|
|
{
|
|
|
|
while true; do
|
|
|
|
sleep 5;
|
|
|
|
if echo /neighbors | nc 127.0.0.1 2006 2>/dev/null | grep -q YES; then
|
2013-12-02 13:04:54 -07:00
|
|
|
echo 1 > /sys/class/leds/ubnt:red:link1/brightness
|
2013-11-14 23:11:16 -07:00
|
|
|
else
|
2013-12-02 13:04:54 -07:00
|
|
|
echo 0 > /sys/class/leds/ubnt:red:link1/brightness
|
2013-11-14 23:11:16 -07:00
|
|
|
fi
|
|
|
|
done;
|
|
|
|
} &
|