Skip to content

Commit

Permalink
Skip AP setup if wpa_supplicant does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Dec 5, 2023
1 parent 8668a24 commit ebd6116
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/pi/configure-ap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ then
exit 1
fi

if [ ! -e /etc/wpa_supplicant/wpa_supplicant.conf ]
then
log_progress "No wpa_supplicant, skipping AP setup."
exit 0
fi

if ! grep -q id_str /etc/wpa_supplicant/wpa_supplicant.conf
then
IP=${AP_IP:-"192.168.66.1"}
Expand Down

0 comments on commit ebd6116

Please sign in to comment.