From 50ffa406f04de782222fcae07c8ba671cefe95f6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 29 May 2015 15:51:14 +0200 Subject: launch interactive shell if ipconfig fails Signed-off-by: Christian Hesse --- hooks/archiso_pxe_common | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hooks') diff --git a/hooks/archiso_pxe_common b/hooks/archiso_pxe_common index d8ac709..0ee33d0 100644 --- a/hooks/archiso_pxe_common +++ b/hooks/archiso_pxe_common @@ -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 -- cgit v1.2.3-70-g09d2