Explorar el Código

add missing netinfo file

Waldemar Brodkorb hace 8 años
padre
commit
b981095862
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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"