Skip to content
Snippets Groups Projects
Commit 34fb4619 authored by Nico's avatar Nico
Browse files

set domain when setting fastd port

This is a first experiment. Set fastd port as before, but now also set
the Gluon domain to the respective segment.
parent caff6fa7
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,16 @@ for i in `seq 1 10`;
do
GW=$(printf "gw%02d" $i)
OLDPEER=$(uci get fastd.mesh_vpn_backbone_peer_${GW}.remote)
OLDDOMAIN=$(uci get gluon.core.domain)
NEWPEER=$(printf "\"gw%02ds%02d.gw.freifunk-stuttgart.de\" port %d" $i $GITSEG $PORT)
NEWDOMAIN=$(printf "\"ffs-seg%02d\"" $GITSEG)
if [ "$NEWPEER" != "$OLDPEER" ]; then
if [ "$NEWDOMAIN" != "$OLDDOMAIN" ]; then
uci set gluon.core.domain="$NEWDOMAIN"
logger -t $ME "setting domain from $OLDDOMAIN to $NEWDOMAIN, this would reboot"
#gluon-reconfigure
#reboot
fi
if [ "$NEWPEER" != "$OLDPEER" ]; then
uci set fastd.mesh_vpn_backbone_peer_${GW}.remote="$NEWPEER"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment