Skip to content

Commit

Permalink
Unblock wifi to fix static wifi and hotspot (#1958)
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored Jan 16, 2025
1 parent f8c9bd6 commit 2f473f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-image/first-boot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ wifiPassword="$wifi_password"
if is_bookworm; then
echo -n "$(timestamp) [openHABian] Setting up NetworkManager and Wi-Fi connection... "
systemctl enable --now NetworkManager
nmcli r wifi on

if [[ -n $wifiSSID ]]; then
# Setup WiFi via NetworkManager
# shellcheck source=/etc/openhabian.conf disable=SC2154
nmcli -w 30 d wifi connect "${wifiSSID}" password "${wifiPassword}" ifname wlan0
fi
#elif [[ -z $wifiSSID ]]; then
elif grep -qs "up" /sys/class/net/eth0/operstate; then
# Actually check if ethernet is working
echo -n "$(timestamp) [openHABian] Setting up Ethernet connection... OK"
Expand Down

0 comments on commit 2f473f6

Please sign in to comment.