summaryrefslogtreecommitdiff
path: root/network
AgeCommit message (Collapse)Author
2012-04-30network: fix deprecation messageTom Gundersen
We should point to the manpage rather than rc.conf. Fixes: FS#29494 Reported-by: Jason St. John <jstjohn@purdue.edu> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-05network: pass -q to dhcpcd on shutdownDave Reisner
Avoid unnecessary output about sending a SIGTERM to the active PID. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-03Small style cleanupLukas Fleischer
* Add whitespace to arithmetic expressions. * Use boolean logic for semantically boolean variables. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-12-28Use /run instead of /var/run in networkAllan McRae
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-08-19network: error out on missing or unknown interfaceDave Reisner
This was caused by commit fc9ce46483fc4d -- if the user has no interface defined but also has no legacy variables defined, our legacy check fails, and we try to bring up the network using an empty declaration. Add in an additional safeguard of checking sysfs to see that the interface really does exist. Fixes FS#25671 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-07-25network: reword depracation message2011.07.1Tom Gundersen
Make it clear that the message refers to network settings, as some users found this confusing. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-25network: don't warn for deprecation with no settingsDave Reisner
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-20network: always warn about deprecation for old funcsDave Reisner
There's no way the ifup|ifdown|rtup|rtdown etc functions will ever hit the new iproute2 based logic. Therefore, always remind the user that this functionality is deprecated. This prevents misusage of the functionality as seen in FS#24714. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-19network: don't enforce check for netmask or gatewayDave Reisner
4cad51425325 removed the necessity for defining gateway, but we still continued to check for it. Remove this check, as well as the check for netmask. When not supplied, netmask will default to /24. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-18network: support gateway-less network setupDave Reisner
This also discards the explicit deletion of the route in network_down, as bringing down the interface will take care of this for us. Addresses FS#24690 Thanks-to: Matthias Dienstbier <matthias_dienstbier@yahoo.de> Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-09[initscripts] network: Add missing broadcast addressGerardo Exequiel Pozzi
Without this broadcast address is not set. broadcast= parameter can be empty. In this case the broadcast address is derived by setting all of the interface host bits to one (+). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-05remove absolute paths from daemons and rc.dDave Reisner
These are run from a context where PATH will be set, so defining absolute paths is unnecessary.
2011-05-22network: deprecate net-tools, add iproute2 supportDave Reisner
Provide large warnings when net-tools functionality is used. Add documentation in rc.conf for the new iproute2 based config. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-05-22network/rc.sysinit: remove dead codeDave Reisner
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29network: cleanup variable declarationsDave Reisner
* replace use of eval with variable indirection * scope variables to functions Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29whitespace cleanupDave Reisner
* adhere to a consistant vim modeline * use top-right/bottom-left braces for functions Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-16Use dhcpcd -k instead of killAndrea Scarpino
2010-09-08Fix two typos introduced by the latest patch seriesThomas Bächler
2010-09-07restrict NETWORK_PERSIST to runlevel 0 and 6Florian Pritz
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-07-23Trivial bashification of network script.Victor Lowther
2010-06-09network, rc.conf: Add NETWORK_PERSIST option2010.06-2Thomas Bächler
Setting NETWORK_PERSIST="yes" will skip network shutdown. This is needed to cleanly halt or reboot the systemif your root device is on NFS. It does not affect network profiles.
2009-10-05network: support early 'up' for dhcp interfacesAaron Griffin
Previous commit acac4f47597320f55995bdaf692d6f2335a1d67e attempted to parse the name of the interface from the config line, but neglected to check for "dhcp" config lines, in which case the interface is the name Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-24network: Use real interface name for ifconfig upAaron Griffin
Using the variable name doesn't work in cases like this: my_interface_foo="eth0 blah blah" INTERFACES=(my_interface_foo) It produces errors like so: my_interface_foo no such device Fixes FS#16114 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-11network: bring interfaces up right away in ifupJames Rayner
Allow association to begin, for wireless interfaces Ref: FS#13299 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-03Allow creation of bridges with bonded interfacesJonathan Liu
Ref: FS#10616 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-09network: Remove the hotplug_ifup command, the function has been removed a ↵Thomas Bächler
long time ago
2008-07-22ipv6 over ipv4 tunneling support in /etc/rc.d/networkDaniel Kaminski
This is done by checking the route config for a double colon Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-07-17Add some useful error messages to wireless codeJames Rayner
Additionally add optional WIRELESS_TIMEOUT parameter Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-06Remove the "interface is already up" check from ifupThomas Bächler
As stated in commit f589387f0b9ef56de8ab30f50a3c562e010baeeb, even an interface that is 'UP' may need configuring. However, the check introduced in this commit is nonsense (causing bug #9960, possibly others). The best idea is to remove the check altogether: This may cause duplicate dhcpcd processes to run (should be fixed), but otherwise ensures the interface is brought up when it should be.
2008-03-09More full-path fixesRoman Kyrylych
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-14Remove some bashisms from network, even though we cannot convert itDan McGee
Since netfs and network source rc.conf, we cannot fully convert it to an sh script. However, we can get rid of a few things that are not sh compatible. Signed-off-by: Dan McGee <dan@archlinux.org>
2008-01-08Enhance interface 'up' state checkingLoic Nageleisen
Using the 'UP' state to imply operational status is wrong and even if a device is 'UP' we may still need to run ifconfig/dhcp Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-01-08network script logic cleanups/enhancementsAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-01-08Remove the hotplug functionality from the network scriptAaron Griffin
Hotplug hasn't been supported in Arch for ages Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-12-11Removing netcfg from initscriptsJames Rayner
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-10-21fixing second part of #6959Thomas Bächler
2007-10-21replace all remaining backticks with $(...)Thomas Bächler
2007-05-10upgpkg: initscripts 0.8-8James Rayner
fixing flyspray #7004 #6859, change in dhcpcd state directory.
2006-06-28handle ESSID fields that contain spacesJudd Vinet
2005-12-07changed both network scripts to use good ol' /bin/kill instead of dhcpcd's ↵Judd Vinet
-k switch (I forgot about #2942)
2005-12-06Added interface param to dhcpcd -k calls in network and netcfgJudd Vinet
2005-12-05dhcpcd fix in rc.d/networkJudd Vinet
2005-11-15added variables for autoloading modules, cleaned up rc.conf a bitJudd Vinet
2005-11-11changed ifup() to skip interfaces that are already upJudd Vinet
2005-10-12another quick fix for netcfg stuff (no rebuild yet)Judd Vinet
2005-10-03added ability to use the netcfg menu from the NET env varJudd Vinet
2005-09-15modified netcfg/network scripts -- you can list multiple entries in ↵Judd Vinet
NET_PROFILES that use the same INTERFACE. They will be started one at a time, and the first successful one will be kept.
2005-07-06fixed a netcfg bug where disabled profiles were being startedJudd Vinet
2005-06-30added new netcfg stuff for roaming network profilesJudd Vinet
2005-03-11added support for backgrounding daemons at startup with a '@' prefix, ↵Judd Vinet
commented out the ldconfig call at startup, added support for unicode console maps, added a hotplug_ifup() function rc.d/network for hotplug's net.agent to use