summaryrefslogtreecommitdiffstats
path: root/ifupdown/if-pre-up
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-08 14:38:28 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-08 14:38:28 (EDT)
commit95e5d03f260b7a97616a1e8f825edfc3bd913345 (patch)
tree4c978c79fd216ec3d5dfeefee059517dda217c63 /ifupdown/if-pre-up
parente8f437d3754cda3f7e4de6d32ce3f1dd16e69959 (diff)
ifupdown: Support multiple wpa_supplicant procs
Diffstat (limited to 'ifupdown/if-pre-up')
-rwxr-xr-xifupdown/if-pre-up3
1 files changed, 2 insertions, 1 deletions
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
}