fix: use ip route instead of hostname -I for Arch compatibility
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user