summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-24 01:35:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-24 01:35:35 +0100
commitb98109586252f774b4f25ccde4cfd2ef7c420aad (patch)
tree18fc608be9412010f10e8aa1a7f7e2b8393fed18 /package/base-files
parentfadf503d6599e1a1d3750fd11427b7ec91d9068e (diff)
add missing netinfo file
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"