dhcpcd: stop wpa_supplicant when dhcpcd stops

This commit is contained in:
Eivind Uggedal 2014-11-28 09:56:22 +01:00
parent 1655db30ca
commit 84bd39ef99
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
--- dhcpcd-hooks/10-wpa_supplicant
+++ dhcpcd-hooks/10-wpa_supplicant
@@ -114,6 +114,6 @@ then
case "$reason" in
PREINIT) wpa_supplicant_start;;
RECONFIGURE) wpa_supplicant_reconfigure;;
- DEPARTED) wpa_supplicant_stop;;
+ DEPARTED|STOP) wpa_supplicant_stop;;
esac
fi
index 5293f9713cbe..8b19ffbcbb1b 100644
--- dhcpcd.c
+++ dhcpcd.c
@@ -1049,6 +1049,7 @@ handle_signal1(void *arg)
break;
case SIGTERM:
syslog(LOG_INFO, sigmsg, "TERM", (int)si->pid, "stopping");
+ do_release = 1;
break;
case SIGALRM:
syslog(LOG_INFO, sigmsg, "ALRM", (int)si->pid, "releasing");

View File

@ -1,7 +1,7 @@
# Template file for 'dhcpcd' # Template file for 'dhcpcd'
pkgname=dhcpcd pkgname=dhcpcd
version=6.6.4 version=6.6.4
revision=1 revision=2
lib32disabled=yes lib32disabled=yes
build_options="systemd" build_options="systemd"
build_style=configure build_style=configure