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
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)
;;
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