1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 12:31:24 +00:00

Fix #139: show IP address in login screen

Following coreos convention, we print all the addresses set on all of the network interfaces

Signed-off-by: wlan0 <sidharthamn@gmail.com>
This commit is contained in:
wlan0 2015-04-28 12:10:08 -07:00
parent 6f4d7a177a
commit 7e5aed8638

View File

@ -104,6 +104,8 @@ if ! grep -q "$(hostname)" /etc/hosts; then
echo 127.0.1.1 $(hostname) >> /etc/hosts
fi
echo $(/sbin/ifconfig | grep -B1 "inet addr" |awk '{ if ( $1 == "inet" ) { print $2 } else if ( $2 == "Link" ) { printf "%s:" ,$1 } }' |awk -F: '{ print $1 ": " $3}') >> /etc/issue
if [ -x /opt/rancher/bin/start.sh ]; then
echo Executing custom script
/opt/rancher/bin/start.sh || true