From 46c497bd54833746c9d46a305d3dffe39222cf9f Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 27 Mar 2019 18:26:33 -0400 Subject: [PATCH] Use ip instead of ifconfig, which is deprecated and breaks on the latest stretch, for me --- lib/wifi/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wifi/index.js b/lib/wifi/index.js index 14abcdd..340cd78 100644 --- a/lib/wifi/index.js +++ b/lib/wifi/index.js @@ -5,7 +5,7 @@ const quoteRe = new RegExp('"', 'g') const filePath = '/etc/wpa_supplicant/wpa_supplicant.conf' const reconfigure = '/sbin/wpa_cli reconfigure' -const refresh = '/sbin/ifdown wlan0 && /sbin/ifup --force wlan0' +const refresh = 'ip link set wlan0 down && ip link set wlan0 up' const iwlist = '/sbin/iwlist wlan0 scanning | grep "ESSID:"' const iwgetid = '/sbin/iwgetid'