Skip to content

Commit

Permalink
fix issue #111
Browse files Browse the repository at this point in the history
- Change configure.ash to set iface names to wlan0 and wlan1

- Changed get_wifi_ssid.ash file to retrieve ssid from wlan1
AdityaC4 committed Aug 8, 2024
1 parent 9a7c2a1 commit 4aec7b1
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion router/configure.ash
Original file line number Diff line number Diff line change
@@ -91,4 +91,9 @@ wget http://137.184.243.11/dist/manage_temp_firewall.ash
chmod +x manage_temp_firewall.ash
cd /www/cgi-bin/
wget http://137.184.243.11/dist/set_temp_access.ash
chmod +x set_temp_access.ash
chmod +x set_temp_access.ash

uci set wireless.@wifi-iface[0].ifname='wlan0'
uci set wireless.@wifi-iface[1].ifname='wlan1'
uci commit wireless
wifi reload
2 changes: 1 addition & 1 deletion router/get_wifi_ssid.ash
Original file line number Diff line number Diff line change
@@ -3,5 +3,5 @@ echo "Content-type: application/json"
echo "Access-Control-Allow-Origin: *"
echo ""

SSID=$(iwinfo phy1-ap0 info | grep 'SSID' | awk -F '"' '{print $2}')
SSID=$(iwinfo wlan1 info | grep 'SSID' | awk -F '"' '{print $2}')
echo "{ \"ssid\": \"$SSID\" }"

0 comments on commit 4aec7b1

Please sign in to comment.