diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-12-24 01:35:35 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-12-24 01:35:35 +0100 |
commit | b98109586252f774b4f25ccde4cfd2ef7c420aad (patch) | |
tree | 18fc608be9412010f10e8aa1a7f7e2b8393fed18 | |
parent | fadf503d6599e1a1d3750fd11427b7ec91d9068e (diff) |
add missing netinfo file
-rw-r--r-- | package/base-files/files/rc.netinfo | 2 |
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" |