From patchwork Tue Apr 3 19:27:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,v1,2/4] fff-hoods: set hood to none if on station mode From: Tim Niemeyer X-Patchwork-Id: 831 Message-Id: <20180403192749.28637-3-tim@tn-x.org> To: franken-dev@freifunk.net Date: Tue, 3 Apr 2018 21:27:47 +0200 Signed-off-by: Tim Niemeyer Reviewed-by: Christian Dresel --- src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 1b9fa2b..a825eea 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -98,6 +98,9 @@ else rm -f "$hoodfilecopy" # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place rm -f "$sectorcopy" # always delete: no broadcast for isolated device rm -f "$sectortmp" + + uci -q set "system.@system[0].hood=" + uci -q commit system sleep 30 # Wait for the config AP, which may be created at the same time as this script has started