aboutsummaryrefslogtreecommitdiff
path: root/network
AgeCommit message (Collapse)AuthorFiles
2012-08-23add some deprecation warningsTom Gundersen1
As we are moving to systemd, alert initscripts users in case they use the legacy configuration options. The legacy options will still work in initscripts, but eventually will not work with systemd. In other words, most users will want to switch to the new settings. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-08-03network: fix warning on trying to start a running networkTom Gundersen1
Reported-by: Ali Kaasinen <ali.kaasinen@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-23network: fix network_down when no interface is setTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-18network: don't check for existence of if on net_downTom Gundersen1
In the absence of an interface, dhcpcd will do the right thing. Or ip will complain.
2012-07-18network: don't complain about missing or invalid interfaceTom Gundersen1
If the interface is missing and we use dhcpcd, we do the right thing. Otherwise, ip or dhcpcd will complain for us. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-07-12Correct spelling and grammar throughoutJason St. John1
This patch addresses the issues with my previous patch submission here: https://mailman.archlinux.org/pipermail/arch-projects/2012-June/002990.html The notable changes between this patch and the previous one are below: -- this patch does not rename set_timezone() -- 'filesystems' and 'bash' are left as-is -- everything is in one patch, not two -- the 'makedepends' change is no longer relevant because the duplication of it was already removed in a later commit Regarding the capitalization of "Btrfs", it seems that upstream prefers "Btrfs".[1][2] Regarding 'https://' vs. 'http://', I left this change in the patch because stating 'https://www.archlinux.org' in the start-up messages doesn't force anyone to use HTTPS over HTTP. It simply shows that HTTPS is available for use. If someone really doesn't want to use HTTPS, they don't have to. Finally, Dan McGee stated that HTTPS will be used all the time soon.[3] [1] https://oss.oracle.com/projects/btrfs/ [2] https://btrfs.wiki.kernel.org/index.php/Main_Page [3] https://bugs.archlinux.org/task/30486#comment96222 Signed-off-by: Jason St. John <jstjohn@purdue.edu>
2012-04-30network: fix deprecation messageTom Gundersen1
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 Reisner1
Avoid unnecessary output about sending a SIGTERM to the active PID. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-03Small style cleanupLukas Fleischer1
* 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 McRae1
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 Reisner1
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 Gundersen1
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 Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-06-20network: always warn about deprecation for old funcsDave Reisner1
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 Reisner1
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 Reisner1
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 Pozzi1
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 Reisner1
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 Reisner1
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 Reisner1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-03-29network: cleanup variable declarationsDave Reisner1
* 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 Reisner1
* 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 Scarpino1
2010-09-08Fix two typos introduced by the latest patch seriesThomas Bächler1
2010-09-07restrict NETWORK_PERSIST to runlevel 0 and 6Florian Pritz1
Signed-off-by: Florian Pritz <bluewind@xssn.at>
2010-07-23Trivial bashification of network script.Victor Lowther1
2010-06-09network, rc.conf: Add NETWORK_PERSIST option2010.06-2Thomas Bächler1
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 Griffin1
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 Griffin1
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 Rayner1
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 Liu1
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ächler1
long time ago
2008-07-22ipv6 over ipv4 tunneling support in /etc/rc.d/networkDaniel Kaminski1
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 Rayner1
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ächler1
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 Kyrylych1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
2008-02-14Remove some bashisms from network, even though we cannot convert itDan McGee1
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 Nageleisen1
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 Griffin1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-01-08Remove the hotplug functionality from the network scriptAaron Griffin1
Hotplug hasn't been supported in Arch for ages Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-12-11Removing netcfg from initscriptsJames Rayner1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-10-21fixing second part of #6959Thomas Bächler1
2007-10-21replace all remaining backticks with $(...)Thomas Bächler1
2007-05-10upgpkg: initscripts 0.8-8James Rayner1
fixing flyspray #7004 #6859, change in dhcpcd state directory.
2006-06-28handle ESSID fields that contain spacesJudd Vinet1
2005-12-07changed both network scripts to use good ol' /bin/kill instead of dhcpcd's ↵Judd Vinet1
-k switch (I forgot about #2942)
2005-12-06Added interface param to dhcpcd -k calls in network and netcfgJudd Vinet1
2005-12-05dhcpcd fix in rc.d/networkJudd Vinet1
2005-11-15added variables for autoloading modules, cleaned up rc.conf a bitJudd Vinet1
2005-11-11changed ifup() to skip interfaces that are already upJudd Vinet1