dhcpcd: stop wpa_supplicant when dhcpcd stops
This commit is contained in:
parent
1655db30ca
commit
84bd39ef99
21
srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch
Normal file
21
srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch
Normal 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");
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'dhcpcd'
|
||||
pkgname=dhcpcd
|
||||
version=6.6.4
|
||||
revision=1
|
||||
revision=2
|
||||
lib32disabled=yes
|
||||
build_options="systemd"
|
||||
build_style=configure
|
||||
|
|
Loading…
Reference in New Issue
Block a user