Skip to content
Snippets Groups Projects
Commit b1a397e9 authored by Christian Hesse's avatar Christian Hesse :stuck_out_tongue_winking_eye: Committed by Gerardo Pozzi
Browse files

launch interactive shell if ipconfig fails


Signed-off-by: default avatarChristian Hesse <mail@eworm.de>
parent b1011376
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment