View Single Post
Posts: 2 | Thanked: 0 times | Joined on May 2006
#10
Just FYI, I did a more permanent workaround using the ideas and info from this guy:
http://stefans.datenbruch.de/nokia770/
I hooked in this small shell-script just after it has received an IP but before it's signaled on the dbus. It exits on ping return-code 2 (ping error, not time-out) which I'm hoping will only happen when the user deliberately disconnects.
Code:
#!/bin/sh

/var/lib/install/usr/bin/ping -q -c 3 -i 10 www.google.com
while [ $? -ne 2 ]
do
        /var/lib/install/usr/bin/ping -q -c 3 -i 10 www.google.com
done