aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/dhcpcd.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-27 13:33:37 +0000
committerRoy Marples <roy@marples.name>2009-04-27 13:33:37 +0000
commit3d43fb6f227729bb6837ffeea3d6e2e44b6486e2 (patch)
tree5acade010f75af46e0db44eefe18bb80eeb8519d /init.d.misc/dhcpcd.in
parent824bb3aee3940c1b0b36effaf8a8434039fdc44b (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.misc/dhcpcd.in')
-rw-r--r--init.d.misc/dhcpcd.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/init.d.misc/dhcpcd.in b/init.d.misc/dhcpcd.in
index 91f0110c..656a2c1e 100644
--- a/init.d.misc/dhcpcd.in
+++ b/init.d.misc/dhcpcd.in
@@ -14,5 +14,14 @@ depend()
use logger
after bootmisc modules
before dns
- keyword noshutdown
+}
+
+stop_pre()
+{
+ # When shutting down, kill dhcpcd but preserve network
+ # We do this as /var/run/dhcpcd could be cleaned out when we
+ # return to multiuser.
+ if yesno $RC_GOINGDOWN; then
+ : ${stopsig:=SIGKILL}
+ fi
}