Show IP on VM startup

This commit is contained in:
Paul committed 2014-01-03 14:00:26 +00:00
1 parent 68a62c851a
commit 8ef7b0ba1a
1 file changed
+9 -2
+9 -2
View File
@@ -1,4 +1,11 @@
#!/bin/sh
echo "BOOOOOOOT!"
echo "boot..."
IP=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print \$1}'`
echo
echo
echo " De Security Workshop VM is nu opgestart"
echo " Ga met je browser naar deze URL:"
echo
echo " \033[0;32mhttp://$IP/\033[0m"
echo