Skip to content

Instantly share code, notes, and snippets.

@vvavrychuk
Created September 25, 2017 16:43
Show Gist options
  • Save vvavrychuk/ebb1af74d7a3407b06ebae2cdbdd51d9 to your computer and use it in GitHub Desktop.
Save vvavrychuk/ebb1af74d7a3407b06ebae2cdbdd51d9 to your computer and use it in GitHub Desktop.
--- /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant.orig 2017-09-25 16:36:33.861123204 +0000
+++ /lib/dhcpcd/dhcpcd-hooks/10-wpa_supplicant 2017-09-25 16:37:58.590462366 +0000
@@ -111,6 +111,13 @@
type wpa_supplicant >/dev/null 2>&1 && \
type wpa_cli >/dev/null 2>&1
then
+ case $interface in
+ p2p-*)
+ syslog info "skipping wpa_supplicant hook for $interface"
+ return 0
+ ;;
+ esac
+
case "$reason" in
PREINIT) wpa_supplicant_start;;
RECONFIGURE) wpa_supplicant_reconfigure;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment