Waldemar Brodkorb пре 8 година
родитељ
комит
b981095862
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      package/base-files/files/rc.netinfo

+ 2 - 0
package/base-files/files/rc.netinfo

@@ -0,0 +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"