blob: 86b3aba479b4f2b26c8e53e516926d184bdd3fd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# functions that are allowed to be called if we are in the queen or
# ghost state
gwiptbl=/tmp/p2ptbl/gwip
DHCPLeaseTime=$((12 * 3600))
NodeId="$(cat /etc/nodeid)"
oct3=$(ifconfig br-mesh | egrep -o 'inet addr:[0-9.]*'|cut -f3 -d.)
[ -n "$oct3" ]
gwip=10.17.$oct3.1
we_own_our_ip () {
[ "$(p2ptbl get $gwiptbl $oct3 | cut -sf2)" == "$NodeId" ]
}
|