summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/rc.netinfo2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/rc.netinfo b/package/base-files/files/rc.netinfo
new file mode 100644
index 000000000..b8fc6951a
--- /dev/null
+++ b/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"