Skip to content

Commit

Permalink
Merge pull request #5 from elschnorro77/master
Browse files Browse the repository at this point in the history
fix for scan_ssid
  • Loading branch information
JavanXD authored Mar 10, 2020
2 parents c3e359f + 0fbc808 commit b51c594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/shell-scripts/change_router_ssidpw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ssid=$1;
pw=$2;

sudo sed -i "s/psk=.*/psk=\"$pw\"/" /etc/wpa_supplicant/wpa_supplicant.conf;
sudo sed -i "s/ssid=.*/ssid=\"$ssid\"/" /etc/wpa_supplicant/wpa_supplicant.conf;
sudo sed -i "s/^[[:blank:]]*ssid=.*/ssid=\"$ssid\"/" /etc/wpa_supplicant/wpa_supplicant.conf;

# connect to wifi without reboot
sudo wpa_cli -i wlan0 reconfigure

0 comments on commit b51c594

Please sign in to comment.