diff --git a/defaults.inc b/defaults.inc index 11fada4d..2b381fcc 100755 --- a/defaults.inc +++ b/defaults.inc @@ -14,7 +14,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= [ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && 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) || RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) - + echo $RNIP if [ -f ${NM_FOLDER}/conf/defaults.local.inc ]; then declare -A NM_HOSTS declare -A NM_SERVICES_CHECK