On Sun, 25 Jul 2004 09:23, Schwartz wrote:
Hello,
How could i setup it in Kinternet ?? I would like to wait 10 sec. before reconnect.
Thanks a Lot!!
-- (c) Schwartz ARGENTINA.
This script should do what you want. If not give me a yell. ============= reconnect.sh ============= #!/bin/sh # # Script to check if modem is disconnected & try reconnecting # Graham Smith - 01/02/2004 # # set -x result=$(/usr/bin/cinternet -i dsl0 -s | /usr/bin/grep disconnect) #Checks the status of device dsl0 'disconnect' if [ -n "$result" ] then /usr/bin/cinternet -i dsl0 -A #Start the interface. sleep 10 else #The interface is up - Just exit exit 0 fi ================================== -- Regards, Graham Smith ---------------------------------------------------------