summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-10-19Documentation updateJames Rayner9-98/+149
2009-10-03connections/ethernet: Don't incorrectly return indicating failureJames Rayner2-4/+2
2009-09-29wpa_actiond-action: Properly quote arguments of the script, they might ↵Thomas Bächler1-7/+7
contain spaces (especially $profile)
2009-09-27Fix symlink creation in Makefile - it shouldn't point to the build directoryThomas Bächler1-1/+1
2009-09-27Add net-auto-wireless rc.d script for the wpa_actiond modeThomas Bächler2-1/+57
2009-09-27Fix wpa_actiond pid file in netcfg-wpa_actiond scriptThomas Bächler1-4/+4
2009-09-27Add stop to netcfg-wpa_actiond, default to WPA2, then WPA.James Rayner2-8/+22
2009-09-27Rename autowifi->wpa_actiond, add makefile, bugfixJames Rayner4-4/+5
2009-09-27Remove wpa generation duplication, fix wep/none-oldJames Rayner3-65/+54
2009-09-27Only flush when disabling wireless interface, tidy up down/forcedownJames Rayner3-18/+15
2009-09-27Fix incorrect continue, and config generationJames Rayner1-4/+4
2009-09-25Integrate netcfg into autowifiJames Rayner2-0/+132
This is implemented almost entirely as suggested by Thomas, and it depends on autowifi which is his work. autowifi-netcfg provides proper roaming and automatic wireless though wpa_supplicant. To run, use autowifi-netcfg $interface
2009-09-25Large rework of wireless to use wpa_supplicantJames Rayner2-97/+83
* Connect SECURITY=wep|none with wpa_supplicant * Separate out iwconfig based configuration as -old as a fallback for older hardware * Drop some old quirks, as they're mostly needed for iwconfig based or are needed by deprecated drivers * Drop wpa_passphrase and just generate a config.
2009-09-23Add WPA_DRIVER, WPA_COUNTRY and handle WEP string keysJames Rayner3-14/+19
WPA_DRVER: Configure the -D argument to wpa_supplicant, for example -Dnl80211 WPA_COUNTRY: Set the 'country=' variable in the wpa_supplicant configuration. WEP string keys: modified such that they may work. Not tested yet.
2009-09-22Fix silly codeJames Rayner1-18/+13
2009-09-22Rework wireless to use wpa_supplicant more, add CONFIGSECTION supportJames Rayner3-57/+69
CONFIGSECTION will be useful later on for integration with autowifi. It'll allow WPA configurations to be stored _in_ the profile, rather than separately. Experimentally, WEP/none support has been migrated to wpa_supplicant. Support for string keys has not yet been merged.
2009-09-22Merge connections ethernet/ethernet-iprouteJames Rayner10-235/+97
2009-09-14Rename set_interface to bring_interfaceJim Pryor5-17/+17
3. Change the name of "set_interface up/down..." to "bring_interface up/down" to differentiate it from the similarly-named, merely record-keeping functions. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14don't count profile as connected if it was suspended without a profile-downJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14added more contrib/ filesJim Pryor5-49/+230
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14More localized sourcingJim Pryor2-23/+12
When we're sourcing a profile just to obtain a single variable, use the form: INTERFACE=$(. "$DIR/$profile"; echo "$INTERFACE") This makes it clearer in the source what we're expecting to obtain from the profile, and what we're ignoring. Also allows us to eliminate some more inclusive subshells. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14src/network tweaksJim Pryor1-21/+37
* changed some report_fails that were called without any preceding report_try --> report_err * deploy new check_iface functionality to profile_up and profile_down and interface_down * have profile_up/down report_debug the results of check_iface * the call to interface_down doesn't need to be sandboxed; all the profile sourcing functions it calls as subroutines do their own sandboxing. Don't they? * added missing INTERFACE="$1" to check_iface * tweaks to bring_interface Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14Consolidate check_iface and get_iface_profJim Pryor1-25/+13
1. Change the behavior of check_iface to match that of get_iface_prof (that is, echo either "external" or the profile name, and return 0=true, or echo nothing and return 1=false). 2. Then eliminate get_iface_prof. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14load hooks only from /usr/lib/network/hooksJim Pryor2-11/+5
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14revert regexp ESSID patchesJim Pryor5-39/+21
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14/sys/class/rfkill/rfkillN/state=2 for disabled on my systemJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14remove duplicated list_networksJim Pryor1-40/+0
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14Returns and exitsJim Pryor5-11/+19
* add some abortive returns * some exit tweaks Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14Sourcing not necessary in get_rf_state, set_rf_stateJim Pryor1-4/+1
Every time these functions are called, the sourcing has already just been done by the caller. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14check for $IFACE_DIR/$INTERFACE before sourcingJim Pryor2-3/+3
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14tabs->spaces, vim modelinesJim Pryor15-225/+230
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-14Tweaks while mergingJim Pryor7-42/+44
* added various quotes * made some vars local * tweaked some [[ ]]s, including one broken one in netcfg-menu * s/ra0/$INTERFACE/ in ethernet-iproute and wireless Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Rework rfkill into re-usable functionsJames Rayner4-76/+82
2009-09-07Generalise wpa_supplicant scan informationJames Rayner1-7/+51
2009-09-07Added initial rfkill supportJames Rayner3-33/+79
Added some extra debug points Directed debug out to stderr, as debug messages were being used as output from find_essid.
2009-09-07at_interface_{up,down} => IFACE_{UP,DOWN}Jim Pryor2-36/+31
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Read /etc/network.d/interfaces/ when loading profileJames Rayner2-10/+9
* profile is sourced again after doing so, so profile-level assignments can override * folded validate_profile into load_profile: the extra source command in load_profile was redundant, so all that load_profile effectively did was just call validate_profile
2009-09-07indentationJim Pryor1-17/+17
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07quotes around $(...) where neededJim Pryor5-6/+6
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Replace pipe to xargs with pipe to while read...Jim Pryor1-1/+3
Was trying to fix an issue with /etc/rc.d/functions. Ended up fixing the issue in initscripts instead. But this is a bit simpler for netcfg anyway. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07typo in a commentJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07move checkyesno to globals, make NETCFG_DEBUG a yes/no setting (default=no)Jim Pryor3-32/+36
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07add an improved pm-utils handlerJames Rayner1-0/+44
2009-09-07Comments, more harmless bitsJim Pryor4-11/+20
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07long switches when calling netcfgJim Pryor1-2/+2
Also, the code seems mostly to use /usr/bin/netcfg2 rather than /usr/bin/netcfg. So I've made it do that consistently (I think, in earlier commits). Is this your intent? Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Lots of little tweaks that should never hurt. Some of them may help inJames Rayner9-51/+59
corner cases; others probably make no difference. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07respect TMPDIRJim Pryor3-9/+9
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07wireless-dbus tweaksJim Pryor1-2/+2
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07i/o tweaksJim Pryor3-5/+10
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07Use wpa_supplicant for list_networksJames Rayner2-29/+21