Skip to content

Commit 69710d0

Browse files
authored
handle Wi-Fi in trixie like in bookworm (#2082)
Signed-off-by: Markus Storm <[email protected]>
1 parent f054a6f commit 69710d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build-image/first-boot.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ if ! source "/opt/openhabian/functions/helpers.bash"; then echo "FAILED (source
4141
if ! source "/opt/openhabian/functions/wifi.bash"; then echo "FAILED (source wifi)"; fail_inprogress; fi
4242
if source "/opt/openhabian/functions/openhabian.bash"; then echo "OK"; else echo "FAILED (source openhabian)"; fail_inprogress; fi
4343

44-
if ! is_bookworm; then
45-
rfkill unblock wifi # Wi-Fi is blocked by Raspi OS default since bullseye(?)
44+
if ! is_trixie || ! is_bookworm; then
45+
rfkill unblock wifi # Wi-Fi is blocked by Raspi OS default since bullseye
4646
fi
4747
webserver=/boot/webserver.bash
4848
[[ -f /boot/firmware/webserver.bash ]] && ln -s /boot/firmware/webserver.bash "$webserver"
@@ -102,7 +102,7 @@ hotSpot=${hotspot:-enable}
102102
wifiSSID="$wifi_ssid"
103103
# shellcheck source=/etc/openhabian.conf disable=SC2154
104104
wifiPassword="$wifi_password"
105-
if is_pi && is_bookworm; then
105+
if is_trixie || is_bookworm && is_pi; then # attention no brackets => left-associative ordering so put && last
106106
echo -n "$(timestamp) [openHABian] Setting up NetworkManager and Wi-Fi connection... "
107107
systemctl enable --now NetworkManager
108108
nmcli r wifi on

0 commit comments

Comments
 (0)