launch interactive shell if ipconfig fails
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
b1011376cf
commit
b1a397e98d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user