This commit is contained in:
2024-12-01 21:18:28 -06:00
parent 8dbfac0878
commit ac0c255cb9
2 changed files with 37 additions and 1 deletions

View File

@@ -20,4 +20,6 @@ LRed='\033[1;31m'
[ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) ||
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)