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:
@@ -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
|
||||
|
Reference in New Issue
Block a user