From b98109586252f774b4f25ccde4cfd2ef7c420aad Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 24 Dec 2015 01:35:35 +0100 Subject: add missing netinfo file --- package/base-files/files/rc.netinfo | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 package/base-files/files/rc.netinfo (limited to 'package/base-files') 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" -- cgit v1.2.3