From c54fcf9b86d23133f5c290e068b9cac3bad3a328 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Sun, 10 Jun 2018 14:05:59 +0200 Subject: [PATCH] fff-hoods: set hood to none if on station mode Signed-off-by: Tim Niemeyer Reviewed-by: Christian Dresel Reviewed-by: Adrian Schmutzler Reviewed-by: Robert Langhammer --- 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 1b9fa2b2..42a489d5 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 del "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