Skip to content
Snippets Groups Projects
Commit 85c8c8b3 authored by Roland's avatar Roland
Browse files

Using real DNS-Subdomain "segassign.freifunk-stuttgart.de" with IPv6-Range 2001:2:0:711::/16

parent 28fd9949
No related branches found
No related tags found
No related merge requests found
...@@ -6,12 +6,12 @@ fi ...@@ -6,12 +6,12 @@ fi
if [ $(ps | grep -c "fastd") -lt 2 ]; then if [ $(ps | grep -c "fastd") -lt 2 ]; then
echo fastd not running echo fastd not running
exit 1 exit 0
fi fi
if [ "$(uci get fastd.mesh_vpn_backbone.auto_segment)" = "0" ]; then if [ "$(uci get fastd.mesh_vpn_backbone.auto_segment)" = "0" ]; then
echo auto_segment disabled echo auto_segment disabled
exit 1 exit 0
fi fi
NODEID=`uci get network.bat0.macaddr` NODEID=`uci get network.bat0.macaddr`
...@@ -20,12 +20,12 @@ do ...@@ -20,12 +20,12 @@ do
NODEID=${NODEID/\:/} NODEID=${NODEID/\:/}
done done
NODEID=ffs-$NODEID NODEID=ffs-$NODEID
SEGMENT=`nslookup $NODEID.configserver.selfhosted.de [::1]:54 |tail -n1 ` SEGMENT=`nslookup $NODEID.segassign.freifunk-stuttgart.de [::1]:54 |tail -n1 `
if [[ -z "${SEGMENT// }" ]]; then if [[ -z "${SEGMENT// }" ]]; then
echo Node not known echo Node not known
exit 1 exit 1
fi fi
SEGMENT=${SEGMENT/Address 1: 2001:2::/} SEGMENT=${SEGMENT/Address 1: 2001:2:0:711::/}
let PORT=SEGMENT+10040 let PORT=SEGMENT+10040
SEGNUM=$(printf "%02d" $SEGMENT) SEGNUM=$(printf "%02d" $SEGMENT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment