iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes
[distro-setup]
/
btrbk-run
diff --git
a/btrbk-run
b/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)
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
&& ip n show 10.2.0.1 | grep . &>/dev/null; then
# note: logic duplicated in 11-iank
at_home=true