Add timeout to ipconfig call

Signed-off-by: David Thurstenson <thurstylark@gmail.com>
This commit is contained in:
David Thurstenson 2017-03-10 14:01:05 -06:00 committed by Gerardo Exequiel Pozzi
parent 201aa13bb4
commit ae854ed712

View File

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