various fixes
[distro-setup] / btrbk-run
index 9bd6e9b6f62b3628d68648350c657c021d56d9b6..fc096579f95dd8620782ff4e7dfcf7ecb4d84506 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -103,7 +103,7 @@ set-location() {
       at_home=true
       ;;
     x2|x3|sy|so)
-      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
         # note: logic duplicated in 11-iank
         at_home=true