summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet-iproute
AgeCommit message (Collapse)AuthorFilesLines
2009-09-07quotes around $(...) where neededJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Comments, more harmless bitsJim Pryor1-5/+3
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Lots of little tweaks that should never hurt. Some of them may help inJames Rayner1-5/+6
corner cases; others probably make no difference. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15quotes!Jim Pryor1-13/+13
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15start consolidation of ifconfig/ip/set_interfaceJim Pryor1-6/+9
* try to factor all the ifconfig/ip set dev code to single location (currently networks/set_interface, though I recommend a different name for this function because it's too close in name and different in functionality from set_iface, set_profile). * added "forcedown" option to set_interface, meaning "just go down don't worry about 'nodown' quirks" * even with "forcedown", this factoring would introduce "ip addr flush dev $INTERFACE" calls to existing code. I assume that's harmless? or even beneficial? * one code block (in ethernet_iproute) had stdout,stderr of the down calls redirected to /dev/null. I've moved that to set_interface, so now everyone's getting that behavior. I assume that's appropriate... * now no more calls to "ip" or "ifconfig" outside of set_interface, except the checks for NO-CARRIER after ethernet*/set_interface up. They might also be moved to network/set_interface? * as of this commit, all the set_interface calls are now using ip instead of ifconfig. A subsequent commit will isolate the ip-use to ethernet-iproute and the ifconfig-use to ethernet. * ALERT: attend to wireless_down, it seems to be calling set_interface down twice (once in ethernet_down, once in itself). And neither this commit nor the code it's patching respects quirk nodown in the ethernet_down block. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Improve debugging and error-reporting.Jim Pryor1-7/+7
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15grep tweaksJim Pryor1-3/+3
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15wpa_cli, start/stop_wpa, wpa_check tweaksJim Pryor1-1/+3
* Supply -i switch to wpa_cli * Have wpa_check call stop_wpa on failure, instead of duplicating (only some of) the termination code. * Need brief sleep in termination code. * Note that functions which call wpa_check don't need to call stop_wpa themselves, when wpa_check fails. * Functions which call wpa_check and start_wpa are however responsible for all error reporting on failure. * Add some debugging calls to announce calls to wpa_start/wpa_check Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-10Add interface setting, a debug mode and interface setting hooksJames Rayner1-4/+2
2009-08-10merge logging code from Jim PryorJames Rayner1-15/+27
2009-08-10Add wireless+iproute support, extend wait for some slower cardsJames Rayner1-1/+1
2009-08-10Added basic rfkill support; prototype connection query supportJames Rayner1-0/+7
2009-06-06Another attempt at a working link check, FS#13334James Rayner1-11/+5
2009-04-28Fix cable check and handle devices which take some time to report state=up. ↵James Rayner1-4/+12
FS#13334
2009-02-16various fixes, and new quirk 'noacheck'James Rayner1-4/+0
2008-12-22add iproute enabled ethernet connection type, fix makefile for new wirelessJames Rayner1-0/+119