FS#2977 - network says 'fail' but works

Attached to Project: Arch Linux
Opened by Scott H (stonecrest) - Tuesday, 19 July 2005, 16:02 GMT
Last edited by James Rayner (iphitus) - Monday, 09 April 2007, 00:18 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To James Rayner (iphitus)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I have the following defined in my rc.conf:

lo="lo 127.0.0.1"
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(lo wlan0 eth0)

If I boot up my laptop with a wireless card in it and no ethernet cable plugged in, eth0 doesn't work (good), wlan0 does work (good), but the network script comes back with 'fail' (bad). It seems to me that if one of the interfaces is successful, the entire script should be successful. The point of the script is to bring up a network connection and it has done so.
This task depends upon

Closed by  James Rayner (iphitus)
Monday, 09 April 2007, 00:18 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Tuesday, 19 July 2005, 17:31 GMT
Actually, the point is to bring up ALL interfaces. If I have a server with eth0 and eth1, and one of them doesn't come up, I need to know.

If your use of wlan0 and eth0 are mutually exclusive (one or the other, not both), you could try the new initscripts package in Testing. It supports the idea of network profiles, where you can specify at boot-time which profile you want to use. This is better suited for laptop users.
Comment by Claudio Riva (Firetux) - Tuesday, 19 July 2005, 20:00 GMT
yes, I agree with you Judd.
Another solution is for example to print one line for every interfaces. For example if in rc.conf I have this:

lo="lo 127.0.0.1"
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(lo wlan0 eth0)

at boot time I will get something like this:

Starting Network --> lo [DONE]
Starting Network --> eth0 [FAIL]
Starting Network --> wlano [DONE]
Comment by Judd Vinet (judd) - Tuesday, 19 July 2005, 20:27 GMT
That's a good idea, Claudio. Win win.
Comment by Claudio Riva (Firetux) - Tuesday, 19 July 2005, 20:40 GMT
thank you Judd :)
Comment by Scott H (stonecrest) - Tuesday, 19 July 2005, 21:58 GMT
Agreed, I'd be very happy with this more verbose output as well :) Thanks both of you.
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 13:27 GMT
Judd, status? I like proposal by Claudio Riva (Firetux).
Comment by Dale Blount (dale) - Wednesday, 03 January 2007, 19:57 GMT
if someone were to offer patches, this might get implemented quicker.
Comment by James Rayner (iphitus) - Friday, 09 February 2007, 12:04 GMT
will implement in new netscripts.

Loading...