Update defaults.inc

This commit is contained in:
2025-09-12 14:59:02 -05:00
parent 2dd1a6c778
commit 3d946f46ea

View File

@@ -12,6 +12,7 @@ NM_SRVCOPT=(start stop restart reload enable disable)
TSI=$(/sbin/ip link | grep tailscale0)
[ ${#TSI} != 0 ] && RUN_NODE_TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print $4}' | cut -d/ -f1) || RUN_NODE_TSIP=""
echo "TSI=${TSI}"
if [ "$(ip route | awk '/default/ { print $5 }')" == "link" ]; then
RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5; exit }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)