From 9cfa0f467ebadca9c799dd2e66cafe7315edf8a4 Mon Sep 17 00:00:00 2001 From: R0Wi Date: Mon, 18 Nov 2019 21:42:33 +0100 Subject: [PATCH] Add backward compatibility for hostapd v2.5 and older --- scripts/setup_ap.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/setup_ap.sh b/scripts/setup_ap.sh index c9a7a96..30ba382 100755 --- a/scripts/setup_ap.sh +++ b/scripts/setup_ap.sh @@ -32,7 +32,10 @@ setup () { --address=/#/$GATEWAY echo "Starting AP on $WLAN..." - sudo hostapd hostapd.conf -i $WLAN + + # Read hostapd.conf with interface from stdin for + # backward compatibility (hostapd < v2.6). See #398 + echo -e "`cat hostapd.conf`\ninterface=$WLAN" | sudo hostapd /dev/stdin } cleanup () {