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
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
|
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
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.
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]