diff --git a/birdnet-pi/rootfs/etc/cont-init.d/91-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/91-run.sh index fc2280297..959bedf51 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/91-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/91-run.sh @@ -49,4 +49,9 @@ bashio::log.info "Starting BirdNET-Pi services" chmod +x "$HOME"/BirdNET-Pi/scripts/restart_services.sh sudo -u pi "$HOME"/BirdNET-Pi/scripts/restart_services.sh +# Correct the phpsysinfo for the correct gotty service +gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)" +echo "... using $gottyservice in phpsysinfo" +sed -i "s/,gotty,/,${gottyservice:-gotty},/g" "$HOME"/BirdNET-Pi/templates/phpsysinfo.ini + echo " "