From d9db41b0b45c10f0886b8eb863951b6a31914017 Mon Sep 17 00:00:00 2001 From: "thomas.kopp" Date: Wed, 1 Apr 2026 12:23:41 +0200 Subject: [PATCH] fix: use ip route instead of hostname -I for Arch compatibility --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ef61db0..16a949b 100755 --- a/install.sh +++ b/install.sh @@ -84,7 +84,7 @@ echo " Systemeinstellungen → Kurzbefehle → Eigene Kurzbefehle" echo " Befehl: pkill -USR1 -f main.py" echo "" 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 "" fi