Mobile broadband, reconnecting when the connection is dropped
I have mobile broadband working well with my Linux (xandros), when I plug in the dongle the following script automatically connect to the network.
#connect to 3Mobile network when the modem is installed
/bin/su -c 'export DISPLAY=:0; /usr/bin/xandrosncs-proxy --request-start dialup1 &'
the script is called from udev rule.
Now what I would like to do if find a way of automatically reconnecting if I loose the connection (when the train goes through a tunnel for example), any Ideas?