1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +00:00

Merge pull request #247 from wlan0/bugfix

Fix #139: show IP address in login screen
This commit is contained in:
Darren Shepherd
2015-05-01 12:09:43 -07:00

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