summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-11 09:45:14 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-11 09:45:14 -0600
commit5bfebbecea6514037ceef3b832660f70acf8a945 (patch)
tree2c984e7669137555cb62ea6ee809040292fcc830 /init.d
parent1280b97749ec60b4cd3f77d1c68202f305ad79b4 (diff)
downloadopenrc-5bfebbecea6514037ceef3b832660f70acf8a945.tar.gz
openrc-5bfebbecea6514037ceef3b832660f70acf8a945.tar.bz2
openrc-5bfebbecea6514037ceef3b832660f70acf8a945.tar.xz
Rename shutdown_network setting to keep_network
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.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/net.lo.in2
-rw-r--r--init.d/network.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 10a7cb6..b6773fe 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -712,7 +712,7 @@ stop()
# Don't stop the network at shutdown.
# We don't use the noshutdown keyword so that we are started again
# correctly if we go back to multiuser.
- yesno ${shutdown_network:-YES} && yesno $RC_GOINGDOWN && return 0
+ yesno ${keep_network:-YES} && yesno $RC_GOINGDOWN && return 0
local IFACE=${RC_SVCNAME#*.} module=
local IFVAR=$(shell_var "${IFACE}") opts=
diff --git a/init.d/network.in b/init.d/network.in
index 6e9b8c1..13895f0 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -323,7 +323,7 @@ stop()
# Don't stop the network at shutdown.
# We don't use the noshutdown keyword so that we are started again
# correctly if we go back to multiuser.
- yesno ${shutdown_network:-YES} && yesno $RC_GOINGDOWN && return 0
+ yesno ${keep_network:-YES} && yesno $RC_GOINGDOWN && return 0
local int= intv= cmd= downcmd= r=
einfo "Stopping network"