summaryrefslogtreecommitdiffstats
path: root/ifupdown
diff options
context:
space:
mode:
Diffstat (limited to 'ifupdown')
-rwxr-xr-xifupdown/if-down3
-rwxr-xr-xifupdown/if-pre-up3
2 files changed, 4 insertions, 2 deletions
diff --git a/ifupdown/if-down b/ifupdown/if-down
index 6915ade..224d97b 100755
--- a/ifupdown/if-down
+++ b/ifupdown/if-down
@@ -4,7 +4,8 @@ set -eu
if [ "x${IFACE#wlan}" != "x${IFACE}" ]; then
if [ -f "/var/run/wpa_supplicant.${IFACE}.conf" ]; then
- wpa_cli -p/var/run/wpa_supplicant -i${IFACE} terminate
+ wpa_cli -p"/var/run/wpa_supplicant.${IFACE}" -i${IFACE} \
+ terminate
rm "/var/run/wpa_supplicant.${IFACE}.conf"
fi
fi
diff --git a/ifupdown/if-pre-up b/ifupdown/if-pre-up
index 73aba1b..d3f17f4 100755
--- a/ifupdown/if-pre-up
+++ b/ifupdown/if-pre-up
@@ -37,7 +37,8 @@ get_iface_opts()
wpa_opts_start_cb()
{
exec 3>"/var/run/wpa_supplicant.${IFACE}.conf"
- printf 'ctrl_interface=DIR=/var/run/wpa_supplicant\ncountry=US\n\n' >&3
+ printf 'ctrl_interface=DIR=/var/run/wpa_supplicant.%s\ncountry=US\n\n' \
+ "${IFACE}" >&3
printf 'network={\n' >&3
}