#2185: Check carrier status in DHCP client scripts
---------------------------------------------+------------------------------
 Reporter:  dnicholson@…                     |       Owner:  bdubbs  
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  current 
Component:  Bootscripts                      |     Version:  SVN     
 Severity:  normal                           |    Keywords:  network 
---------------------------------------------+------------------------------

Comment(by bdubbs@…):

 I know this is an old ticket, but don't know if we should fix it or not.
 First of all, the interface must be set 'up' before checking
 /sys/class/net/${1}/carrier, otherwise an error is returned.  Secondly, I
 found that it takes about two seconds after the interface is set up for
 the carrier to change from 0 to 1 for a static IP on my system.

 I really don't want want to but a sleep into the boot scripts.

 We could make the check optional in ifconfig.eth0 with a variable like
 CHECK_CARRIER.

 Also, I think this would only be applicable to wired connections.

 I'd like to get feedback before continuing.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2185#comment:13>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to