#!/bin/sh { while true; do sleep 5; if echo /neighbors | nc 127.0.0.1 2006 2>/dev/null | grep -q YES; then echo 1 > /sys/class/leds/ubnt:red:link1/brightness else echo 0 > /sys/class/leds/ubnt:red:link1/brightness fi done; } &