Well I coded up a few PHP scripts to take advantage of the LED's. They're very rough. I'm sure for some of the things I could pull from the config.xml, but that just seemed like a lot of work / extra overhead.
The following will ping your gateway and something else of your choice. If both return a ping LED 2 gets lit. If the GW returns a ping but the other IP does not (internet down), then it flashes LED2. Otherwise LED 2 get turned off.
$gateway = "xxx.xxx.xxx.xxx";
$external = "yahoo.com";
$gwping=exec("/sbin/ping -c 1 -i 1 $gateway");
$extping=exec("/sbin/ping -c 1 -i 1 $external");
if(strlen($gwping)>1 && strlen($extping)>1)
exec("/bin/echo 1 > /dev/led/led2");
if(strlen($gwping)>1 && strlen($extping)<=1)
exec("/bin/echo f5 > /dev/led/led2");
exec("/bin/echo 0 > /dev/led/led2");
The next one tests for how many pptp users are connected. If there are users connected then it turns LED3 on. I was debating having it flash faster for more users, but meh.
exec("/sbin/ifconfig -a", $a);
$pptpusers = 0;
foreach($a as $val)
if($pptpusers > 0)
exec("echo 1 > /dev/led/led3");
exec("echo 0 > /dev/led/led3");
I set cron to run these every few minutes.