summaryrefslogtreecommitdiff
path: root/package/base-files/files/rc.netinfo
blob: b8fc6951a382d744c80b4c88f0d026eac0cd128a (plain)
1
2
ipaddr=$(ip addr show $(ip route show|awk '/default/ { print $5 }')|awk '/inet / { print $2 }'|tail -1)
echo "Your ip address is $ipaddr"