Dominko, With all the latest fixes in trunk, the CONNECT_TIMEOUT value does not have any effect on pppoe coming up. As near as I can determine, it just delays until the connection comes up in case you have any services starting that might depend on having the connection come up first (similar to WAN_DELAY, but it just tells you if it came up during the timeout period). If your ADSL/DSL connection is down when astlinux is started, then once the script gets past the CONNECT_TIMEOUT value it still comes up cleanly when it does come up, as intended.
Terry Dominko Vrljic wrote: > Terry, > thanks for improving pppoe in astlinux. I wrote about these problems several > times, but developers refused to accept suggestions. > Please try to change CONNECT_TIMEOUT to 0 in the > /trunk/target/generic/target_skeleton/etc/init.d/network script. It would > really improve reliability when pppoe is used for the internet connection. > > Dominko > > --- On Tue, 9/30/08, Terry Markovich <[EMAIL PROTECTED]> wrote: > >> From: Terry Markovich <[EMAIL PROTECTED]> >> Subject: [Astlinux-users] more PPPoE fixes >> To: "AstLinux Users" <[email protected]> >> Date: Tuesday, September 30, 2008, 5:22 PM >> I've found a few more issues with rp-pppoe. One looks >> like a >> longstanding problem with resolv.conf when PPPoE is used >> and $DNS is not >> set (using dns from your pppoe host). >> >> If $DNS is not set, the pppoe-connect script tries to >> remove >> /etc/resolv.conf and add a symlink to /etc/ppp/resolv.conf. >> Since >> /etc/resolv.conf is read only, this fails. >> >> I've attached a new patch for the package dir with this >> change only. >> There was an earlier scripts patch that never was updated >> for >> rp-pppoe-3.9 or 3.8. It looks like those changes are no >> longer needed. >> >> The other issue is that rp-pppoe-3.9 fails configuration >> when I build. >> The configure patch also was never moved over from >> rp-pppoe-3.8, and >> would not have worked anyway, so I gnerated another patch >> for that. >> >> Darrick, thanks for adding the other fix yesterday. >> >> Terry >> diff -urN rp-pppoe-3.9.orig/src/configure >> rp-pppoe-3.9/src/configure >> --- rp-pppoe-3.9.orig/src/configure 2008-06-21 >> 10:29:42.000000000 -0400 >> +++ rp-pppoe-3.9/src/configure 2008-09-30 >> 13:51:35.000000000 -0400 >> @@ -6252,7 +6252,7 @@ >> fi >> >> if test "$GCC" = yes; then >> - CFLAGS="$CFLAGS -Wall -Wstrict-prototypes >> -ansi" >> + CFLAGS="$CFLAGS -Wall -Wstrict-prototypes" >> fi >> >> if test "$PPPD" = "NOTFOUND"; then >> @@ -6303,7 +6303,7 @@ >> echo "$as_me:$LINENO: checking packing order of bit >> fields" >&5 >> echo $ECHO_N "checking packing order of bit fields... >> $ECHO_C" >&6 >> if test "$cross_compiling" = yes; then >> - $ECHO "no defaults for cross-compiling"; exit >> 0 >> + $ECHO "no defaults for cross-compiling - using >> arguments" >> else >> cat >conftest.$ac_ext <<_ACEOF >> /* confdefs.h. */ >> >> --- rp-pppoe-3.9.orig/scripts/pppoe-connect.in 2008-06-21 >> 21:47:38.000000000 -0400 >> +++ rp-pppoe-3.9/scripts/pppoe-connect.in 2008-09-30 >> 12:30:21.000000000 -0400 >> @@ -216,8 +216,7 @@ >> # Jigger DNS if required... >> if test "$DNSTYPE" = "SERVER" ; then >> # Sorry, dude... >> - rm -f /etc/resolv.conf >> - ln -s /etc/ppp/resolv.conf /etc/resolv.conf >> + ln -s /etc/ppp/resolv.conf /tmp/etc/resolv.conf >> elif test "$DNSTYPE" = "SPECIFY" ; >> then >> # Sorry, dude... >> rm -f /etc/resolv.conf >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge >> Build the coolest Linux based applications with Moblin SDK >> & win great prizes >> Grand prize is a trip for two to an Open Source event >> anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ >> Astlinux-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via >> PayPal to [EMAIL PROTECTED] > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Astlinux-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to [EMAIL > PROTECTED] > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Astlinux-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
