Skip to content

Commit

Permalink
Add backward compatibility for hostapd v2.5 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Nov 18, 2019
1 parent d0984d1 commit 9cfa0f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/setup_ap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 9cfa0f4

Please sign in to comment.