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:
parent
6f4d7a177a
commit
7e5aed8638
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user