summaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index fbc0124..10a7cb6 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -709,6 +709,11 @@ ${routes}"
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
+
local IFACE=${RC_SVCNAME#*.} module=
local IFVAR=$(shell_var "${IFACE}") opts=