From: <abe...@us...> - 2013-07-12 18:35:03
|
Revision: 6131 http://sourceforge.net/p/astlinux/code/6131 Author: abelbeck Date: 2013-07-12 18:35:00 +0000 (Fri, 12 Jul 2013) Log Message: ----------- network, increase the number of attempts udhcp tries to get an IP address on startup. Previously the default was to try 3 times, 3 seconds apart, now we try 6 times, 2 seconds apart. Some NIC's take a few seconds to become available on startup. Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/etc/init.d/network Modified: branches/1.0/project/astlinux/target_skeleton/etc/init.d/network =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/init.d/network 2013-07-12 18:10:44 UTC (rev 6130) +++ branches/1.0/project/astlinux/target_skeleton/etc/init.d/network 2013-07-12 18:35:00 UTC (rev 6131) @@ -499,7 +499,7 @@ #DHCP if [ -n "$EXTIF" -a -z "$EXTIP" ] && ! isextppp extif; then - udhcpc -b -s /etc/udhcpc.script -H $HOSTNAME -p /var/run/udhcpc-$EXTIF.pid -i $EXTIF + udhcpc -b -T2 -t6 -s /etc/udhcpc.script -H $HOSTNAME -p /var/run/udhcpc-$EXTIF.pid -i $EXTIF ifplugd -apqs -t2 -u3 -d3 -i $EXTIF -r /etc/ifplugd/udhcpc.action # No DHCPv6 - Static IPv6 if defined @@ -511,7 +511,7 @@ #DHCP if [ -n "$EXT2IF" -a -z "$EXT2IP" ] && ! isextppp ext2if; then - udhcpc -b -s /etc/udhcpc.script -H $HOSTNAME -p /var/run/udhcpc-$EXT2IF.pid -i $EXT2IF + udhcpc -b -T2 -t6 -s /etc/udhcpc.script -H $HOSTNAME -p /var/run/udhcpc-$EXT2IF.pid -i $EXT2IF ifplugd -apqs -t2 -u3 -d3 -i $EXT2IF -r /etc/ifplugd/udhcpc.action # No DHCPv6 - Static IPv6 if defined This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |