Mailinglist Archive: opensuse (4208 mails)
| < Previous | Next > |
Re: [SLE] ReConnect conection ADSL with Kintenret. ?? how to ?
- From: Graham Smith <gqs@xxxxxxxxxxxx>
- Date: Sun, 25 Jul 2004 17:46:58 +1000
- Message-id: <200407251746.58803.gqs@xxxxxxxxxxxx>
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
---------------------------------------------------------
> 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
---------------------------------------------------------
| < Previous | Next > |