launch interactive shell if ipconfig fails

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2015-05-29 15:51:14 +02:00 committed by Gerardo Exequiel Pozzi
parent b1011376cf
commit b1a397e98d

View File

@ -25,7 +25,12 @@ run_hook () {
fi
# setup network and save some values
ipconfig "ip=${ip}"
if ! ipconfig "ip=${ip}"; then
echo "ERROR; Failed to configure network"
echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished"
launch_interactive_shell
fi
. /tmp/net-*.conf