X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;fp=btrbk-run;h=fc096579f95dd8620782ff4e7dfcf7ecb4d84506;hb=38387a0fbfcc731fbd5785d4c035c5121a4c9281;hp=9bd6e9b6f62b3628d68648350c657c021d56d9b6;hpb=f27b67a1dfa58b5f101bba607b2f91a73e65299e;p=distro-setup diff --git a/btrbk-run b/btrbk-run index 9bd6e9b..fc09657 100644 --- 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