Hello all.

Just a quick script to test if your (remote) gateway is responding and give visual feedback:

root@OpenWrt:~# cat /sbin/testconn
#!/bin/sh
if (ping -c 1 192.168.2.1 >/dev/null); then
        echo 1 >/proc/diag/led/ses_white;
else
        echo f >/proc/diag/led/ses_white;
fi

Clearly 192.168.2.1 is the host I want to test...
This script is run using crontab:

root@OpenWrt:~# crontab -l
*       *       *       *       *       testconn

The idea can obviously be extended and made configurable, put I prefer KISS, when possible ! :-)

But isn't there anyone that can help me changing that ugly psk1 to psk2 in
http://forum.openwrt.org/viewtopic.php?id=13115 ?

Tks!