summaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
Commit message (Collapse)AuthorAge
* oldnet: make the default carrier timeout 0William Hubbs2012-10-22
| | | | | | | | | Some types of interfaces do not have a carrier, so it doesn't make sense to automatically wait for one. Reported-by: <rose@rz.uni-potsdam.de> X-Gentoo-Bug: 438970 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=438970
* Oldnet: the loopback interface does not need sysfsWilliam Hubbs2012-10-16
|
* do not provide a virtual for the loopbackWilliam Hubbs2012-08-25
| | | | | The loopback interface is active on all systems, so there is no need to provide a virtual for it.
* Bring Back prefix supportWilliam Hubbs2012-07-26
| | | | | We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
* network scripts need sysfs on linux systemsWilliam Hubbs2012-04-03
| | | | | Adjust the previous commit so that on linux systems the network scripts need sysfs.
* Remove prefix supportopenrc-0.9.9William Hubbs2012-02-21
| | | | | I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
* net: add deprecation warning for old style net dependency variablesWilliam Hubbs2012-02-18
|
* Fix meaning of "provide net"William Hubbs2012-02-18
| | | | | | | | | | I was informed that "provide net" should mean that there is network communication outside the local computer. In this case, the loopback interface can't "provide net", but there needs to be a way for other processes to know that the loopback interface is active. To this end, this commit makes the loopback "provide lo" and all other interfaces "provide net".
* Revert "Net: do not bring down interfaces during shutdown"William Hubbs2012-01-30
| | | | | | | This reverts commit 6d5a2d5f9e5c1e3cb4c24dfc0c2ed2c118d8e64c. There are interfaces, such as adsl and ppp interfaces which need to be brought down. Also, the WOL setting is a good case for bringingdown interfaces.
* net: allow parameters to a single address configRobin H. Johnson2012-01-13
| | | | | | | | | | | | | | | | In the case of a single line of configuration, where the address has parameters, the parameters were being treated as seperate addresses. Eg: config_eth0="4321:0:1:2:3:4:567:89ab/64 nodad home preferred_lft 0" Also document usage of parameters in the net example, and note that multiple addresses on a single line cannot be mixed with parameters. Newlines are required to seperate the addresses. X-Gentoo-Bug: 398827 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=398827 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net: net.lo, lots of scriptsRobin H. Johnson2012-01-08
| | | | | | | | | | | The program function in depend blocks is now able to search paths by itself. If passed multiple arguments or multiple calls, at least one of the arguments passed must be a program or a shell builtin (eg ip built into busybox). If a qualified path is specified, only that path will be checked, otherwise it will be checked as a builtin, then $PATH will be checked for the named binary (via type). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* net.lo: Add the ability to find the full path of a binaryWilliam Hubbs2012-01-07
| | | | | | | | | Some of the networking tools, such as iproute2, can be stored in one of several locations. This function gives us a standard way to find these tools. I would like to thankRobin Johnson <robbat2@gentoo.org> for his input on this function.
* Net: do not bring down interfaces during shutdownWilliam Hubbs2011-12-30
|
* net: use yesno to test up_before_preupWilliam Hubbs2011-12-27
|
* net: Add up_before_preup variable for CAN devicesRobin H. Johnson2011-12-26
| | | | | | | | | | | | Historically, we have tried to up interfaces before running preup, so that the kernel setups up the device and makes things like ethtool work (some hardware cannot be correct probed until then). However this ends up breaking other hardware, so a variable has been introduced to allow the up prior to preup to be disabled: up_before_preup_IFVAR=no X-Gentoo-Bug: 389475 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=389475 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Network: start interfaces after dbusWilliam Hubbs2011-12-12
| | | | | | | | This is needed to allow auto-connect at boot. Reported-by: David J Cozatt <ygdrasil@comcast.net> X-Gentoo-Bug: 390955 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=390955
* net.lo: fix typo in previous math commitMike Frysinger2011-11-23
| | | | | | | x-Gentoo-Bug: 391671 x-Gentoo-Bug-URL: http://bugs.gentoo.org/391671 Reported-by: Duncan <1i5t5.duncan@cox.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make shell math operations style more succulentMike Frysinger2011-11-19
| | | | | | | | | | | Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Small style changeWilliam Hubbs2011-10-02
|
* Add a new helper functions for _{flatten,get}_arrayChristian Ruppert2011-09-21
| | | | | | | | | | | | | | | A new helper function (_array_helper) since both, the _flatten_array and _get_array function share partially the same code. We also reduce multiple whitespace to a single space, remove leading newlines as well as skipping "empty" lines. This makes the data returned by _{flatten,get}_array much nicer than before. It also fixes bug 366677 where net-tools having trouble with the whitespace mentioned above. iproute2 was not affected. Reported-by: Andrew Maltsev <am@ejelta.com> X-Gentoo-Bug: 366677 X-Gentoo-Bug-URL: https://bugs.gentoo.org/366677
* Do not print "null" or "noop" when configuring an interfaceYun Zheng Hu2011-08-20
| | | | | | | | | | | Note by william hubbs: I modified the patch to compare "null" and "noop" with $1 instead of ${config}. Reported-by: Yun Zheng Hu <hu@fox-it.com> X-Gentoo-Bug: 379577 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=379577
* Add warnings for the use of bash arraysWilliam Hubbs2011-07-14
| | | | | | | | | | | Currently, we allow the use of bash arrays for some configuration settings. This is undocumented, so I want to remove the support from openrc. The first phase of this removal will be this commit which adds warnings to encourage people not to use bash arrays. X-Gentoo-Bug: 374875 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=374875
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* revert changes for bug #292894William Hubbs2011-04-15
| | | | | | | | This is being done because these dependency changes caused a regression. We will need to revisit the previously mentioned bug. X-Gentoo-Bug: 363693 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363693
* start loopback interface before mtabWilliam Hubbs2011-04-11
| | | | | X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
* remove "after bootmisc" dependency from loopback interfaceWilliam Hubbs2011-04-10
|
* bring up the loopback interface earlierWilliam Hubbs2011-04-10
| | | | | | | | | | | | | | | For most situations, the loopback interface can depend on root instead of localmount, so this patch makes that happen. It also adds comments to the net.example files explaining when a user might want to change this and giving an example. I would like to thank Robin Johnson for the original patch and suggested examples. X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* add fallback_routes support to network scriptsWilliam Hubbs2011-04-09
| | | | | | | | | | | | Add support for optional fallback_routes_* variables in the network scripts. This is similar to the fallback_route_* support in baselayout-1. However, if you do not have fallback_routes set for an interface but you do have routes set, that setting will be used, so you do not need this variable unless you want the fallback routes to be different from the primary routes. X-Gentoo-Bug: 250978 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=250978
* do not delete addresses when stopping a ppp interface.Ed Wildgoose2011-03-21
| | | | | | | | This is important in situations where ppp is being used in a demand dialing setup. X-Gentoo-Bug: 359069 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=359069
* more whitespace cleanupMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Bug #266659: we really need to allow peer, pointtopoint in parsing config lines.Robin H. Johnson2010-12-11
|
* We should use -feature instead of nofeature.Roy Marples2009-07-01
| | | | | | This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
* Update copyrightRoy Marples2009-06-05
|
* Only delete addresses for interfaces that exist.Roy Marples2009-05-29
|
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | OpenRC version is now stored as plaintext in /libexec/rc/version Plugins (cursplash, splashutils) will have to be re-compiled to pickup the new directories. State data needs to be moved from /lib/rc/init.d to /libexec/rc/init.d as well.
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Fix working on zshRoy Marples2008-12-30
|
* Restore interface_exists, interface_up and interface_exists, #123.Roy Marples2008-11-10
|
* Fix adding just the default route, #119 thanks to pva.Roy Marples2008-10-14
|
* Let ifdown control all interfaces.Roy Marples2008-06-03
|
* Add ifdown_eth0=NO so that the interface stays up for WakeOnLan, Gentoo #220875Roy Marples2008-05-09
|
* We need to ensure that the init script started is correct, translating ↵Roy Marples2008-04-29
symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526.