summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-08-15use subshells as sandboxes, and failing POST_UP/PRE_DOWN abortsJim Pryor1-18/+46
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Improve listing/iterating over profilesJim Pryor2-19/+27
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Improve debugging and error-reporting.Jim Pryor3-12/+13
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15grep tweaksJim Pryor5-11/+11
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15More secure temp WPA_CONFIG fileJim Pryor1-15/+13
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Don't overwrite existing $WEP_OPTSJim Pryor1-5/+7
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15ethernet_up will create resolv.conf also for $DNSJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Sanitize quotes for wpa_startJim Pryor1-0/+5
Arguments to wpa_start shouldn't be expanded until wpa_start receives them: so should be quoted by all calling functions. I added quotes throughout. In general, it seems wise to quote except when it's absolutely certain not to be needed---or you specifically _do_ want to expand arguments. In this case, it's extra important. Because this might be missed in later code, I also wrangled wpa_start so that it doesn't rely on WPA_OPTS being all in $3. One of these fixes would have sufficed, but what the hell I did both. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15wpa_cli, start/stop_wpa, wpa_check tweaksJim Pryor4-19/+28
* 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-15Everyone use i/o functions from globals/hooksJim Pryor6-21/+10
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15netcfg current and netcfg listJim Pryor1-2/+26
These and "netcfg version" don't require root privileges. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15Add contrib dir and logging hooksJim Pryor2-17/+27
* Add contrib/logging.hook * Update Makefile and manpage * Propose that hooks go into /etc, not /usr---latter should be shareable and possibly read-only, not good spot for user-configurable files like these. * Since we have hooks/arch as part of the package, this commit attempts to load hooks from both /usr/lib/network/hooks and /etc/network.d/hooks. (Executable hooks in /etc take precedence over hooks with same name from /usr.) * Need to load /etc/rc.conf before /etc/rc.d/functions (e.g. for USECOLORS) Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-10Erase any suspended profiles on a newly connected interfaceJames Rayner1-0/+13
2009-08-10allow interfaces to be marked as externally controlledJames Rayner1-14/+28
2009-08-10add missing globals and 'arch' hookJames Rayner2-0/+131
2009-08-10merge changes since revertJames Rayner7-90/+301
2009-08-10Add interface setting, a debug mode and interface setting hooksJames Rayner5-15/+25
2009-08-10merge improved find_ap/find_essidJames Rayner2-14/+55
2009-08-10merge logging code from Jim PryorJames Rayner7-78/+115
2009-08-10Add wireless+iproute support, extend wait for some slower cardsJames Rayner3-6/+10
2009-08-10Added basic rfkill support; prototype connection query supportJames Rayner3-1/+58
2009-08-10revert pryor patchJames Rayner12-1384/+405
2009-08-07rename wireless fileJames Rayner1-0/+141
2009-08-07rename wireless fileJames Rayner1-141/+0
2009-08-07Patch from Jim PryorJames Rayner12-436/+1353
2009-06-27netcfg v2.2.1James Rayner1-1/+1
2009-06-27fix taking all profiles downJames Rayner1-1/+1
2009-06-27netcfg v2.2.0James Rayner1-1/+1
2009-06-27Workaround for FS#15072James Rayner1-1/+1
2009-06-06netcfg v2.2.0 beta 3James Rayner1-1/+1
2009-06-06Another attempt at a working link check, FS#13334James Rayner2-21/+10
2009-06-01netcfg v2.2.0 beta 2James Rayner1-1/+1
2009-05-19Fix FS#14761 and handle if no profiles are activeJames Rayner1-18/+19
2009-05-19typo (fix #14761)Andrea Scarpino1-2/+2
2009-05-19fix #14761 (again)Andrea Scarpino1-3/+3
2009-05-19fix #14761Andrea Scarpino1-15/+13
2009-05-18fixed typo by Robson Roberto Souza PeixotoAndrea Scarpino1-1/+1
2009-05-18netcfg v2.2.0 beta 1 (again)James Rayner1-1/+1
2009-05-18wireless: check if iface is real, stop wpa_supplicant on failuresJames Rayner2-8/+30
2009-05-12cosmetic fix to help message outputJames Rayner1-1/+1
2009-05-12improve netcfg help textJames Rayner1-6/+8
2009-05-07Add reconnect option to netcfg and improve clean optionJames Rayner1-1/+6
2009-05-07remove infinite loop causing wireless to failJames Rayner1-5/+0
2009-04-29undo WPA and ethernetAndrea Scarpino1-1/+12
2009-04-29ethernet doesn't need check for wpaAndrea Scarpino1-12/+0
2009-04-29set SECURITY to none if not setAndrea Scarpino1-0/+3
2009-04-28Fix cable check and handle devices which take some time to report state=up. ↵James Rayner2-13/+22
FS#13334
2009-04-28Add WEP support to wireless-dbus, remove broken interface type check in wirelessJames Rayner1-5/+0
2009-02-26remove stat_appendJames Rayner1-1/+1
2009-02-26FS#13492 - correct find command in all_downJames Rayner1-1/+2