mirror of
https://github.com/rancher/os.git
synced 2025-09-03 07:44:21 +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:
@@ -104,6 +104,8 @@ if ! grep -q "$(hostname)" /etc/hosts; then
|
|||||||
echo 127.0.1.1 $(hostname) >> /etc/hosts
|
echo 127.0.1.1 $(hostname) >> /etc/hosts
|
||||||
fi
|
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
|
if [ -x /opt/rancher/bin/start.sh ]; then
|
||||||
echo Executing custom script
|
echo Executing custom script
|
||||||
/opt/rancher/bin/start.sh || true
|
/opt/rancher/bin/start.sh || true
|
||||||
|
Reference in New Issue
Block a user