X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=cd6b7e89061fed28b6dbdaa4a9d11afbd1e15461;hb=802e885e3e7fa3857f8bc4f54c261d5ca76f2454;hp=c83b76354a15b3c253e51350af31edb51e5a4784;hpb=12cab163424e3a7b0815646d1d4407f9b5839bcb;p=distro-setup diff --git a/btrbk-run b/btrbk-run index c83b763..cd6b7e8 100644 --- a/btrbk-run +++ b/btrbk-run @@ -175,13 +175,13 @@ if [[ ! -v targets && ! $source ]]; then kw) at_work=true ;;& - x2|x3|sy) + x2|x3|sy|bo) if ping -q -c1 -w1 hal.office.fsf.org \ && ip n show 192.168.0.26 | grep . &>/dev/null; then at_work=true fi ;;& - kw|x2|x3|sy) + kw|x2|x3|sy|bo) if $at_work; then if ping -q -c1 -w1 iank.vpn.office.fsf.org &>/dev/null; then home=iank.vpn.office.fsf.org @@ -195,7 +195,7 @@ if [[ ! -v targets && ! $source ]]; then kw) targets+=($home x3) ;; - x2|x3|sy) + x2|x3|sy|bo) targets+=($home) if $at_work; then targets+=(kw.office.fsf.org x2.b8.nz) @@ -205,12 +205,11 @@ if [[ ! -v targets && ! $source ]]; then ;; kd) targets+=(x2.b8.nz kw.b8.nz) - ## sy is unused - # if ping -q -c1 -w1 sy.b8.nz &>/dev/null; then - # targets+=(sy.b8.nz) - # else - # targets+=(syw.b8.nz) - # fi + if ping -q -c1 -w1 sy.b8.nz &>/dev/null; then + targets+=(sy.b8.nz) + else + targets+=(syw.b8.nz) + fi ;; frodo) # no targets