summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-25 09:55:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-25 09:55:52 +0200
commit79f980d61810072ec308c4477e1a74a70fe05a8b (patch)
tree31810d520eebae6c95c420c7334cea049379cd43
parent1156f781cfa0b69dae5543b6210d32cfd2a414c6 (diff)
add ip adress before login screen
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS5
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