ReConnect conection ADSL with Kintenret. ?? how to ?
Hello, How could i setup it in Kinternet ?? I would like to wait 10 sec. before reconnect. Thanks a Lot!! -- (c) Schwartz ARGENTINA.
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, Thanks for your fast answer !! Where will I put it in the boot.local or other file (ex. /etc/ppp ) ?, What kind of permissions do I assign to him? Thanks in ADV. -- (c) Schwartz ARGENTINA.
Hello,
Thanks for your fast answer !! Where will I put it in the boot.local or other file (ex. /etc/ppp ) ?, What kind of permissions do I assign to him?
Thanks in ADV.
-- (c) Schwartz ARGENTINA. Setting of permissions for pppd is best accomplished in permissions.local. I used the following, which worked: /usr/sbin/pppd root.dialout 6754 ...but I found that if I used my script to dial & maintian the connection I didn't have to set the permissions. That script is posted... under pppd
On Sunday 25 July 2004 08:16, Schwartz wrote: problems, I think it was. -- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty
Hello, Anyway i would like to know how to create and where to put that script, so it will be sensing the connection and at the time it disconnects reconnects automatically... could you tell me how you have it configured? Thanks in Advance !!! -- (c) Schwartz ARGENTINA.
Hello,
Anyway i would like to know how to create and where to put that script, so it will be sensing the connection and at the time it disconnects reconnects automatically... could you tell me how you have it configured?
Thanks in Advance !!!
-- (c) Schwartz ARGENTINA. That should be in the same e-mail wherein you found the script (cut/paste): ======================================================================== Beyond assigning dialout permissions for pppd, you might try the following
On Sunday 25 July 2004 09:34, Schwartz wrote: script which someone on the list shared with me (I wish I could remember the name so proper credit could be assigned): == #!/bin/sh # # Script to check if modem is disconnected & try reconnecting # result=$(cinternet -i ppp0 -s | grep disconnect) #Checks the status of device ppp0 for the word 'disconnect' and stores the #result in a variable called 'result' if [ -n "$result" ] #Test to see if the value is not NULL then cinternet -i ppp0 -A #Start the interface. sleep 10 else #The interface is up - Just exit exit 0 fi == I have been using this for weeks, now, and it works like a charm. One can put it in /usr/local/bin & call it as a cron job, if desired, to see that the connection stays up as long as you would like it to stay. ======================================================================== Unless, of course, you were looking at the wrong e-mail. ;-) -- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty
Graham,
Could you said me for send mail with my new IP ? Can you send me the
file script complete ?
Thanks a Lot.
On Sun, 25 Jul 2004 10:03:34 -0500, C Hamel
Hello,
Anyway i would like to know how to create and where to put that script, so it will be sensing the connection and at the time it disconnects reconnects automatically... could you tell me how you have it configured?
Thanks in Advance !!!
-- (c) Schwartz ARGENTINA. That should be in the same e-mail wherein you found the script (cut/paste): ======================================================================== Beyond assigning dialout permissions for pppd, you might try the following
On Sunday 25 July 2004 09:34, Schwartz wrote: script which someone on the list shared with me (I wish I could remember the name so proper credit could be assigned):
== #!/bin/sh # # Script to check if modem is disconnected & try reconnecting # result=$(cinternet -i ppp0 -s | grep disconnect) #Checks the status of device ppp0 for the word 'disconnect' and stores the #result in a variable called 'result' if [ -n "$result" ] #Test to see if the value is not NULL then cinternet -i ppp0 -A #Start the interface. sleep 10 else #The interface is up - Just exit exit 0 fi ==
I have been using this for weeks, now, and it works like a charm. One can put it in /usr/local/bin & call it as a cron job, if desired, to see that the connection stays up as long as you would like it to stay. ======================================================================== Unless, of course, you were looking at the wrong e-mail. ;-)
-- ....CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- (c) Schwartz ARGENTINA.
participants (3)
-
C Hamel
-
Graham Smith
-
Schwartz