LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hacking adsl-connect (https://www.linuxquestions.org/questions/linux-networking-3/hacking-adsl-connect-293878/)

mangolicious 02-23-2005 10:18 AM

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.


All times are GMT -5. The time now is 09:56 PM.