From 84bd39ef99607ea82f9dd807a60aa0c3c221d47d Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Fri, 28 Nov 2014 09:56:22 +0100 Subject: [PATCH] dhcpcd: stop wpa_supplicant when dhcpcd stops --- srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch | 21 +++++++++++++++++++ srcpkgs/dhcpcd/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch diff --git a/srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch b/srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch new file mode 100644 index 00000000000..2ffd625d127 --- /dev/null +++ b/srcpkgs/dhcpcd/patches/stop-wpa-on-term.patch @@ -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"); diff --git a/srcpkgs/dhcpcd/template b/srcpkgs/dhcpcd/template index 65683d85953..debbc8cae5c 100644 --- a/srcpkgs/dhcpcd/template +++ b/srcpkgs/dhcpcd/template @@ -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