summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/trans/boot.leave
blob: 570a91c8c9cf0892c6839f3c7bd67b6e2196ae48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e
. ../common.sh

# init gwid table by merging it with a hand-crafted table in which all
# available IPs are stored as free with version zero. This guarantees
# that any update on any node will have a higher version. Octet 200 is
# used for br-lan
for i in $(seq 0 199; seq 201 254); do
    echo -e "$i\t0\tfree"
done > /tmp/gwip-init
p2ptbl init  /tmp/p2ptbl/gwip
p2ptbl merge /tmp/p2ptbl/gwip /tmp/gwip-init
rm /tmp/gwip-init

# init empty client config tables
p2ptbl init /tmp/p2ptbl/ccfg_wire
p2ptbl init /tmp/p2ptbl/ccfg_wifi

# start service httpd, listening on the link-local addrs of mesh and
# lan
enable_httpd service
change_service_httpd_listen
/etc/init.d/uhttpd restart
contact: Jan Huwald // Impressum