diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-25 09:55:52 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-25 09:55:52 +0200 |
commit | 79f980d61810072ec308c4477e1a74a70fe05a8b (patch) | |
tree | 31810d520eebae6c95c420c7334cea049379cd43 /package/base-files | |
parent | 1156f781cfa0b69dae5543b6210d32cfd2a414c6 (diff) |
add ip adress before login screen
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/src/etc/init.d/rcS | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS index 3bb7b80ce..b5afea57d 100755 --- a/package/base-files/src/etc/init.d/rcS +++ b/package/base-files/src/etc/init.d/rcS @@ -78,3 +78,8 @@ fi esac done } |tee /dev/stderr |logger -p 6 -t '' + +if [ $rcquiet -ne 1 ];then + ipaddr=$(ip addr show $(ip route show|awk '/default/ { print $5 }')|awk '/inet / { print $2 }') + echo "Your ip adress is $ipaddr" +fi |