mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Display IP during boot
This commit is contained in:
parent
256060db0d
commit
f06daa7800
@ -134,9 +134,17 @@ fi
|
|||||||
|
|
||||||
# Display message in docker log output
|
# Display message in docker log output
|
||||||
|
|
||||||
echo "-------------------------------------------"
|
IP=$(ip address show dev eth0 | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/)
|
||||||
echo " You can now login to DSM at port 5000 "
|
|
||||||
echo "-------------------------------------------"
|
if [[ "$IP" == "20.20"* ]]; then
|
||||||
|
MSG="port 5000"
|
||||||
|
else
|
||||||
|
MSG="http://${IP}:5000"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "--------------------------------------------------------"
|
||||||
|
echo " You can now login to DSM at ${MSG}"
|
||||||
|
echo "--------------------------------------------------------"
|
||||||
|
|
||||||
# Wait for NMI interrupt as a shutdown signal
|
# Wait for NMI interrupt as a shutdown signal
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user