From a326c97dc76c91e76187264b8c0b4f952d319a79 Mon Sep 17 00:00:00 2001
From: nrb <freifunk@nicoboehr.de>
Date: Sat, 11 Jan 2020 23:13:55 +0100
Subject: [PATCH] add some thoughts about applying the domain config

---
 ffs-set-segment/files/usr/sbin/ffs-set-segment | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ffs-set-segment/files/usr/sbin/ffs-set-segment b/ffs-set-segment/files/usr/sbin/ffs-set-segment
index 96f21cf..60fe407 100755
--- a/ffs-set-segment/files/usr/sbin/ffs-set-segment
+++ b/ffs-set-segment/files/usr/sbin/ffs-set-segment
@@ -46,8 +46,9 @@ do
   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
-- 
GitLab