aboutsummaryrefslogtreecommitdiff
path: root/init.d/network.in
AgeCommit message (Collapse)Author
2017-12-12network: use 'command -v ip' to test for the ip executableWilliam Hubbs
This is an improved test because it doesn't require the ip executable to be in a specific path.
2017-03-16update dependencies for clock serviceWilliam Hubbs
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2013-12-29Rename runscript to openrc-runWilliam Hubbs
This was requested by Debian, because the minicom software, which is available on Debian and other distros, has a binary named runscript. We are keeping a backward compatibility symlink for now, but this allows Debian or any other distro to safely remove the symlink. X-Gentoo-Bug: 494220 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
2013-12-06network.in: skip loopback deviceAndrew Gregory
The loopback interface is supposed to be handled by the loopback service, but sys_interfaces includes it. This causes network to try to start it and means that network provides net even if lo is the only interface configured. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-04-08create loopback serviceWilliam Hubbs
The loopback service handles the basic settings for the loopback interface, regardless of the network manager you are using.
2013-02-23Fix shebangs in services to point to the correct location of runscriptAndrew Gregory
SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2013-02-11Rename shutdown_network setting to keep_networkWilliam Hubbs
We were telling users that setting shutdown_network=YES would shut down the network interfaces during shutdown, but this was exactly the opposite of what we were doing. The default was YES, which was keeping the interfaces active. This keeps the default behavior, but renames the setting to keep_network which more accurately describes its function, and instructs users to set it to NO if they want the network interfaces to go down.
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-08-24newnet: provide net if configuring more than the loopback interfaceWilliam Hubbs
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-07-08Revert "Deprecate the network and staticroute scripts"William Hubbs
This reverts commit 5994e55937cbbb71b1c22ad829b77a1bcd8c3793. There are situations where these scripts can be useful, so I am bringing them back. Also, I want to start discussions about simplifying the OpenRC network stack.
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.
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-11-16Deprecate the network and staticroute scriptsWilliam Hubbs
These scripts are not supported, and they have several major design issues such as not being able to stop, start or allow a dependency on a single interface.
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-08-09allow ip to be in /sbin or /binWilliam Hubbs
This makes it possible for the "ip" program in iproute2 to be installed in /sbin or /bin.
2010-07-10fix typoWilliam Hubbs
I made a typo while manually transferring over Roy's last commit. This fixes that typo.
2010-07-07remove extra routeWilliam Hubbs
This was taken from Roy Marples' git repository.
2010-03-24Fix tentative ip addressesRoy Marples
2010-03-22Release openrc-0.6.1Roy Marples
2009-12-19default route commands on Linux now require gw or via (iproute2).William Hubbs
2009-12-14Support inet6 routes.Roy Marples
2009-12-14Allow "dev eth0" to work for a default route.Roy Marples
2009-12-14Fix restart with iproute2Roy Marples
2009-12-14Don't add broadcast addresss to ipv6Roy Marples
2009-12-11TypoRoy Marples
2009-12-10Allow ip to add the default route.William Hubbs
Fixes #211.
2009-11-11Ensure we have a valid broadcast address.Roy Marples
2009-11-10Fix iproute2 support.William Hubbs
Fixes Gentoo #289762.
2009-10-25Fix default domainRoy Marples
2009-10-16Add domainname to the network scriptRoy Marples
2009-10-15Ensure ip brings interface up when adding addresses.Roy Marples
Fixes Gentoo #288889
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-05-01Add (c) to CopyrightRoy Marples
2009-04-27Fix a brain fartRoy Marples
2009-04-27Although the noshutdown keyword is nice, we shouldn't use it for network or ↵Roy Marples
dhcpcd. Instead fake network shutdown so it comes back up correctly at boot and KILL dhcpcd to preserve network.
2009-04-27Add the noshutdown keyword to special case the shutdown.Roy Marples
2009-04-27Style.Roy Marples
2009-04-26Add the nostop keyword so that we don't stop the network init script by default.Roy Marples
2009-04-25Don't report final eends for interfaces as they make no sense.Roy Marples
2009-04-25Verbosely report vars correctly.Roy Marples
2009-04-19Use shell_var for shell variables.Roy Marples
2009-04-19StyleRoy Marples
2009-04-19We should use $int for compat with NetBSDRoy Marples
2009-04-19Pull /etc/ifconfig.eth0 into interfacesRoy Marples
Reverse list of interfaces when stopping Improve build for conf.d/network
2009-04-16Add a new init script - networkRoy Marples
This simply assigns static addresses and an optional default route. It's possible to add external commands as well, so to create a bonded interface. Hopefully we can add a few examples to satisfy most of the old net.lo, which is no longer installed into boot by default.