Update defaults.inc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user