fix: use ip route instead of hostname -I for Arch compatibility

This commit is contained in:
2026-04-01 12:23:41 +02:00
parent f133b9590c
commit d9db41b0b4
+1 -1
View File
@@ -84,7 +84,7 @@ echo " Systemeinstellungen → Kurzbefehle → Eigene Kurzbefehle"
echo " Befehl: pkill -USR1 -f main.py" echo " Befehl: pkill -USR1 -f main.py"
echo "" echo ""
if [[ "$NET_MODE" == "2" ]]; then if [[ "$NET_MODE" == "2" ]]; then
echo "Netzwerk-Zugriff: http://$(hostname -I | awk '{print $1}'):8765" echo "Netzwerk-Zugriff: http://$(ip route get 1 2>/dev/null | awk '{print $7; exit}'):8765"
echo "Tipp: Seite als Lesezeichen auf Handy/PC speichern." echo "Tipp: Seite als Lesezeichen auf Handy/PC speichern."
echo "" echo ""
fi fi