From patchwork Mon Dec 3 19:54:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [2/2] configurehood: Don't offer hoodfile when using local hoodfile From: Fabian Blaese X-Patchwork-Id: 964 Message-Id: <20181203195455.7261-2-fabian@blaese.de> To: franken-dev@freifunk.net Date: Mon, 3 Dec 2018 20:54:55 +0100 When using local hoodfile neither this nor central hoodfile downloaded earlier should be offered to neighbours, so remove it from the webroot. Signed-off-by: Fabian Bläse 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 4ae1364..2d448fc 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -77,6 +77,9 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then fi if [ -s "$hoodfilelocal" ]; then + # remove webroot hoodfile to prevent offering local hoodfiles to neighbours + rm -f "$hoodfilewww" + cp "$hoodfilelocal" "$hoodfiletmp" echo "Use local hood file" else