aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
AgeCommit message (Collapse)Author
2012-10-22oldnet: make the default carrier timeout 0William Hubbs
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
2012-10-16Oldnet: the loopback interface does not need sysfsWilliam Hubbs
2012-08-25do not provide a virtual for the loopbackWilliam Hubbs
The loopback interface is active on all systems, so there is no need to provide a virtual for it.
2012-07-26Bring Back prefix supportWilliam Hubbs
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
2012-04-03network scripts need sysfs on linux systemsWilliam Hubbs
Adjust the previous commit so that on linux systems the network scripts need sysfs.
2012-02-21Remove prefix supportWilliam Hubbs
I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
2012-02-18net: add deprecation warning for old style net dependency variablesWilliam Hubbs
2012-02-18Fix meaning of "provide net"William Hubbs
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".
2012-01-30Revert "Net: do not bring down interfaces during shutdown"William Hubbs
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.
2012-01-13net: allow parameters to a single address configRobin H. Johnson
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>
2012-01-08net: net.lo, lots of scriptsRobin H. Johnson
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>
2012-01-07net.lo: Add the ability to find the full path of a binaryWilliam Hubbs
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.
2011-12-30Net: do not bring down interfaces during shutdownWilliam Hubbs
2011-12-27net: use yesno to test up_before_preupWilliam Hubbs
2011-12-26net: Add up_before_preup variable for CAN devicesRobin H. Johnson
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>
2011-12-12Network: start interfaces after dbusWilliam Hubbs
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
2011-11-23net.lo: fix typo in previous math commitMike Frysinger
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>
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-02Small style changeWilliam Hubbs
2011-09-21Add a new helper functions for _{flatten,get}_arrayChristian Ruppert
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
2011-08-20Do not print "null" or "noop" when configuring an interfaceYun Zheng Hu
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
2011-07-14Add warnings for the use of bash arraysWilliam Hubbs
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
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-15revert changes for bug #292894William Hubbs
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
2011-04-11start loopback interface before mtabWilliam Hubbs
X-Gentoo-Bug: 292894 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=292894
2011-04-10remove "after bootmisc" dependency from loopback interfaceWilliam Hubbs
2011-04-10bring up the loopback interface earlierWilliam Hubbs
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>
2011-04-09add fallback_routes support to network scriptsWilliam Hubbs
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
2011-03-21do not delete addresses when stopping a ppp interface.Ed Wildgoose
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
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-11Bug #266659: we really need to allow peer, pointtopoint in parsing config lines.Robin H. Johnson
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-06-05Update copyrightRoy Marples
2009-05-29Only delete addresses for interfaces that exist.Roy Marples
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
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.
2009-05-01Add (c) to CopyrightRoy Marples
2008-12-30Fix working on zshRoy Marples
2008-11-10Restore interface_exists, interface_up and interface_exists, #123.Roy Marples
2008-10-14Fix adding just the default route, #119 thanks to pva.Roy Marples
2008-06-03Let ifdown control all interfaces.Roy Marples
2008-05-09Add ifdown_eth0=NO so that the interface stays up for WakeOnLan, Gentoo #220875Roy Marples
2008-04-29We need to ensure that the init script started is correct, translating ↵Roy Marples
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.