LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2005, 10:18 AM   #1
mangolicious
Member
 
Registered: Sep 2004
Location: Nowhere Special (if you don't get it, rent Blazing Saddles)
Distribution: Gentoo Linux
Posts: 63

Rep: Reputation: 15
Question hacking adsl-connect


Right now, I am trying to get my router to update my ipv6 HE tunnel endpoint automatically every time my dynamic IP address changes. I already have an automatic update script(written in perl), /etc/conf.d/net.sixbone.pl. I knew that every time my adsl connection dies, it gets revived by adsl-connect so I figured that by modifying this script, I could make adsl-connect tun /etc/conf.d/net.sixbone.pl every time it runs pppoe. No such luck. (otherwise I wouldn't be here ).

my script looks like this at the moment: ( only included the important part; the part I edited. otherwise, it would be way way way too long.)
Code:
while [ true ] ; do
    if test "$OVERRIDE_PPPD_COMMAND" != "" ; then
        $SETSID $OVERRIDE_PPPD_COMMAND &
        echo "$!" > $PPPD_PIDFILE
    elif test "$LINUX_PLUGIN" != "" ; then
        $SETSID $PPPD $PPP_STD_OPTIONS $DEMAND &
        echo "$!" > $PPPD_PIDFILE
    else
        $SETSID $PPPD pty "$PPPOE_CMD" \
            $PPP_STD_OPTIONS \
            $DEMAND \
            $PPPD_SYNC &
        echo "$!" > $PPPD_PIDFILE
    fi
    /etc/conf.d/net.sixbone.pl #this is it
    wait

    if test "$RETRY_ON_FAILURE" = "no" ; then
        exit
    fi

    # Run /etc/ppp/adsl-lost if it exists
    test -x /etc/ppp/adsl-lost && /etc/ppp/adsl-lost

    # Re-establish the connection
    $LOGGER -p daemon.notice \
        "ADSL connection lost; attempting re-connection."

    # Wait a bit in case a problem causes tons of log messages :-)
    sleep 5
done
instead of getting something like this when I run /etc/init.d/rp-pppoe:
...
*bunch of ipv6 related stuff* Connected!

I get:
.. Connected!

notice the lack of the ipv6 related stuff. If it makes any difference, I am using Gentoo with linux-2.6.9-gentoo-r13 as my kernel. the kernel has pppoe support built in.

if you have any ideas please tell me. that'd be great.

Last edited by mangolicious; 02-23-2005 at 10:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adsl will not connect kevin_hill54 Linux - Newbie 4 05-06-2005 07:15 PM
connect using adsl megadsonic Linux - Newbie 3 02-23-2005 10:37 AM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM
RH 8.0 won't connect with my adsl. datamisc Linux - Newbie 2 11-30-2002 03:17 AM
ADSL Connect at startup stargold Linux - Networking 1 09-14-2002 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration