...
 
Commits (2)
......@@ -42,12 +42,12 @@ do
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
#gluon-reconfigure #off for safety
#uci commit gluon #lets not do this right now. might wear off flash memories and we can easily recover the information on the next reboot from DNS.
#reboot #this might not be needed. hoodselector just does uci commit gluon, see https://github.com/freifunk-gluon/gluon/blob/fbb59cfd608a124ca893cc58117b0f87f7b29d97/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua#L71
fi
if [ "$NEWPEER" != "$OLDPEER" ]; then
......