summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2012-10-12Kill dhclient along with dhcpcd when performing cleanups.Ivan Shapovalov1-0/+1
For the sake of completeness and not leaving any garbage behind us. Signed-off-by: Ivan Shapovalov <intelfx100@gmail.com>
2012-10-12Fix whitespace and quotingJouke Witteveen1-4/+4
2012-09-24Small comments revisionJouke Witteveen2-11/+6
Also fix an output string.
2012-09-13Replace multiple echo calls with heredocTom Vincent1-17/+19
2012-08-13Allow hex passphrase in wifi-menuThomas Bächler1-6/+9
WPA allows the use of 64 digit hex passphrases. Allow this in wifi-menu as well.
2012-08-08Fix key handling in netcfgJouke Witteveen1-4/+4
Mainly a regression (7e2ff).
2012-08-08Small code reviewJouke Witteveen2-1/+2
2012-07-172.8.8 release updatesJouke Witteveen1-2/+1
2012-07-14Fix pid-based kills (FS#30664)Jouke Witteveen1-0/+3
The command argument to timeout_wait cannot reference positional parameters (they would become the positional parameters to timeout_wait). We kill wpa_actiond if it does not die with wpa_supplicant.
2012-07-08Use grep instead of fgrep (FS#30598)Jouke Witteveen1-1/+1
Direct invocation as fgrep is deprecated.
2012-07-05Don't try to kill a dead wpa_actiond (FS#29963)Jouke Witteveen1-1/+0
wpa_actiond kills itself when wpa_supplicant propagates its termination.
2012-07-05Rethink management of socket location for wpa_supplicantJouke Witteveen2-7/+2
This may be set in a custom supplicant configuration file. All this is needed to cater for that. The new name of the tracking variable is WPA_CTRL_DIR, conform the environment variable of wpa_cli -a.
2012-07-03Better grep usageJouke Witteveen1-1/+1
When possible, fgrep is preferred. This prevents interpreting variable search patterns as expressions. In setting the control paths, the search expression was updated to match what wpa_supplicant uses.
2012-07-03Better file handling in wifi-menuJouke Witteveen1-8/+9
- Prevent slashes from entering potential profile filenames - Remove scan results file in EXIT trap
2012-06-30wifi-menu: fix name of wireless key variableTasos Latsas1-1/+1
Dialog returns the wireless key in variable $key. Uppercase 'KEY' is used later to create the profile. Signed-off-by: Tasos Latsas <tlatsas2000@gmail.com>
2012-06-25Make AUTO_PROFILES an arrayJouke Witteveen1-1/+7
The previous commit alters the config file (/etc/conf.d/netcfg), marking the right moment for this change.
2012-06-24Provide the ability to activate the last used profile (FS#23015)Jouke Witteveen1-5/+31
Henrik Hallberg made this a hot topic. Thanks. This implementation differs from his in a couple of ways. One is that @last is not implemented. Equivalent functionality is provided by using @net-profiles in the DAEMONS array.
2012-06-24Minor changesJouke Witteveen1-1/+0
$STATE_DIR/last_profile was unused and functionality one could want from it will soon be provided by netcfg-daemon.
2012-06-22Do without temporary file for netcfg-menu dialogHenrik Hallberg1-12/+6
Signed-off-by: Henrik Hallberg <henrik@k2h.se>
2012-06-21Support weird characters in wifi-menu (FS#30342)Jouke Witteveen1-17/+16
This adds support for weird characters in ESSIDs and passwords.
2012-06-14Less forkingJouke Witteveen1-1/+1
Suggestion by Dave Reisner.
2012-06-12Don't wait unnecessarily on bring_interface upJouke Witteveen1-1/+1
Good drivers indicate when they're up by the IFF_UP flag. This is the end of the (undocumented) UP_SLEEP variable and introduction of the UP_TIMEOUT (in seconds, default: 5) variable. This has 'noticeable speed improvement'-potential.
2012-06-12New style to check command availabilityJouke Witteveen3-4/+5
When we don't really care which file implements the needed command (i.e. we don't call it by its full path), we use type to establish availability of the command. In wifi-menu we add a check for the dialog command and remove potential clearing of relevant error messages.
2012-05-17Wait for DAD when using IPv6 (FS#28887)Jouke Witteveen1-1/+1
In IPv6 you cannot bind to an address as long as it is not determined to be unique through Duplicate Address Detection. This can cause problems when routes in ROUTES6 reference a tentative source address or when something that starts after netcfg tries to. This patch does a few things: - Improve ROUTES(6) logic so that non-static connections can make use of them as intended according to the commit message of c8be1. - Make additional arguments possible for ADDR6 addresses and ROUTES6 routes, such as ADDR6=('1234:5678:9abc:def::1/64 nodad'). - Introduce a DAD_TIMEOUT variable that governs how long to wait for DAD to finish. - Move IPCFG processing to after IPv6 address set-up (it already was after IPv4 address set-up), so that custom commands can be sure to have working addresses. WARNING: This changes make it impossible to use ROUTES6 and set the address through IPCFG instead of ADDR6. This was bad, unsupported practice, but sometimes needed as ADDR6 did not allow config flags to be used. Resolving this issue should be no problem: you should be able to properly use ADDR6 now. If not, then be a real hacker and set the routes through IPCFG too. Many thanks to Steve Caligo for reporting this bug and helping out in finding a solution.
2012-04-30Output tweaks in netcfg-daemonJouke Witteveen1-4/+4
Don't try to bring down backgrounded profiles if they are not up, preventing "not connected" messages.
2012-04-30Fix handling of profilenames with spaces (FS#28522)Jouke Witteveen1-1/+1
This was the result of commit b6964 which said to fix FS#17406 by reverting to the subshell-less for-loop that is once again removed in this commit. The real fix to FS#17406 was commit c3276 to the initscripts repository.
2012-04-16Add pm-utils supportJouke Witteveen1-0/+26
Moved from the pm-utils package.
2012-04-15Restore support for kernel command lineJouke Witteveen1-6/+5
It is once again possible to use NET= at the kernel command line when using net-profiles.
2012-04-132.8.0 release updatesJouke Witteveen1-3/+2
2012-04-11Remove obsolete references to /etc/rc.confJouke Witteveen1-1/+0
Configuration is done through /etc/conf.d/netcfg. Compatibility with configuration through /etc/rc.conf is dropped.
2012-04-11Fixes to the netcfg daemonJouke Witteveen1-10/+15
2012-04-11Add netcfg-daemonJouke Witteveen2-0/+67
For reuse in a systemd service
2012-04-09Remove wireless-dbus and ethernet-iproute supportJouke Witteveen1-13/+8
- wireless-dbus is not simple enough for netcfg - some contributed code was not used and the rest of the code had caught up functionality wise - we switched to iproute so we need to stop pretending it is an 'option' - it is no longer fatal in the ifplugd scrict to have multiple preferred profiles
2012-04-03auto-wireless: improve dhcpcd callJouke Witteveen1-2/+4
- Use "-K" to prevent unnecessary remove/re-acquire a lease. - Respect /etc/network.d/interfaces/$interface and the dhcp options set there when connecting without a matching profile. Also use the same options used in $CONN_DIR/ethernet. Fixes by Thomas Bächler
2012-03-27Uniformize SUBR_DIR quotingJouke Witteveen2-3/+3
It needs to be quoted when used as an argument. Putting the name in curly braces is unnecessary.
2012-03-12Rename -i parameter to -DJouke Witteveen2-14/+13
-i is not a very cool parameter for downing an interface. Change it to -D so that it mirrors -R in the sense that a capital is used for interface-based actions. The old behaviour is kept (undocumented) for backward compatibility. Also a typo (iface-recont should have been iface-recon) is fixed. Lastly some restrictions on profile naming are included in the documentation. The "should not start with '@'" is only for usage with net-profiles.
2012-03-04Remove cat-subshells (cosmetic)Jouke Witteveen2-2/+2
The use of cat in a subshell is distractive. This makes the code more beautiful.
2012-03-04Build documentation at buildtimeJouke Witteveen1-1/+1
This justifies the asciidoc make dependency. Previously, pre-built documentation was supplied with the netcfg sources. Now only documentation source and the Makefile is provided.
2012-03-01Code quality upgradeJouke Witteveen4-51/+52
This is what you get when Dave Reisner points you at some bash anti-patterns. Also in this commit: - updated documentation - bugfix revision of the IPv6 SLAAC address/route bug
2012-02-27Reconnect syntax for interfaces (FS#28196)Jouke Witteveen2-3/+4
It is now possible to reconnect based on the name of the interface.
2012-02-22Add wireless connection aidJouke Witteveen1-0/+260
wifi-menu is a tool that lets you connect to a wireless network from the console. It is aware of your netcfg profiles and can write them for you.
2012-02-22ifplugd.action is a bash scriptJouke Witteveen1-1/+1
It sources /etc/rc.d/functions, which is a bash script. This fixes FS#28022 which was reported by jstjohn (jstjohn).
2011-08-20Reorganize files to match install location closerRémy Oudompheng6-103/+199
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-08-14Release version 2.6.8Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-08-09Release version 2.6.7Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-30Release version 2.6.6Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-30Release version 2.6.5Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-14Release version 2.6.4Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-09Release version 2.6.3 (bug fix)Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-03Release version 2.6.2Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>