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
rate_limit=no
verbose=true; verbose_arg="-l trace"
force=false
-if [[ $INVOCATION_ID ]]; then
- # INVOCATION_ID means running as a systemd service. we cant show progress in this case,
+if [[ $PPID == 1 ]]; then
+ # running as a service. we cant show progress in this case,
# but if we pass the arg, it will insert mbuffer into the command.
progress_arg=
else