improvements
[automated-distro-installer] / fai / config / scripts / IANK / 11-iank
index d7a5bd3e942b5abfb28eb78fd2888ff1c267002b..25c0503781e352e9de0d5515a5a7ae599ddcb7dc 100755 (executable)
@@ -211,7 +211,7 @@ EOF
     # for running from fai or remote connections, don't kill the internet
     ethusb_arg=-c
   fi
-  if [[ $(dig +short @10.2.0.1 -x 10.2.0.2 2>&1 ||:) == kd.b8.nz. ]] \
+  if [[ $(timeout 1 dig +short @10.2.0.1 -x 10.2.0.2 2>&1 ||:) == kd.b8.nz. ]] \
        && ip n show 10.2.0.1 | grep . &>/dev/null; then
     # we are at_home
     $FAI/distro-install-common/ethusb-static $ethusb_arg