diff --git a/defaults.inc b/defaults.inc index 01cca9c9..f1c05bb8 100755 --- a/defaults.inc +++ b/defaults.inc @@ -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)