diff options
author | Roy Marples <roy@marples.name> | 2009-04-27 13:33:37 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-27 13:33:37 +0000 |
commit | 3d43fb6f227729bb6837ffeea3d6e2e44b6486e2 (patch) | |
tree | 5acade010f75af46e0db44eefe18bb80eeb8519d /init.d/network.in | |
parent | 824bb3aee3940c1b0b36effaf8a8434039fdc44b (diff) |
Although the noshutdown keyword is nice, we shouldn't use it for network or dhcpcd. Instead fake network shutdown so it comes back up correctly at boot and KILL dhcpcd to preserve network.
Diffstat (limited to 'init.d/network.in')
-rw-r--r-- | init.d/network.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init.d/network.in b/init.d/network.in index fb9668cf..50ba7578 100644 --- a/init.d/network.in +++ b/init.d/network.in @@ -13,8 +13,6 @@ depend() need localmount after bootmisc provide net - # We don't want to stop the network at shutdown - keyword noshutdown keyword nojail noprefix novserver } @@ -240,6 +238,11 @@ start() 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 int= intv= cmd= downcmd= r= einfo "Stopping network" routeflush |