summaryrefslogtreecommitdiff
path: root/init.d.misc/dhcpcd.in
diff options
context:
space:
mode:
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 91f0110..656a2c1 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
}