diff options
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r-- | setup-interfaces.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in index fa167ad..cf02f6b 100644 --- a/setup-interfaces.in +++ b/setup-interfaces.in @@ -157,8 +157,13 @@ network={ } EOF fi - - wpa_supplicant -B -c $conffile -i $iface 2>/dev/null + if grep -q ^wpa_supplicant_args= /etc/conf.d/wpa_supplicant.conf; then + sed -i -e "s/^wpa_supplicant_args=/wpa_supplicant_args=\"-i $iface\"/" /etc/conf.d/wpa_supplicant.conf + else + echo "wpa_supplicant_args=\"-i $iface\"/" >> /etc/conf.d/wpa_supplicant.conf + fi + rc-update --quiet add wpa_supplicant boot + rc-service wpa_supplicant start } wlan_is_not_open() { |