summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/common.sh
blob: 7c73837465c72e1d4af68561f86bc9f9ab24127e (plain)
1
2
3
4
5
cloud_is_online () {
    # look for mac addrs in batman gateway list
    # TODO: remove fake gws with almost zero bandwith
    batctl gwl | tail -n-1 | egrep -q '([0-9a-f]{2}:){5}[0-9a-f]{2}'
}
contact: Jan Huwald // Impressum