[PATCH 2/2] configurehood: Don't offer hoodfile when using local hoodfile
Adrian Schmutzler
mail at adrianschmutzler.de
Do Dez 6 13:02:27 CET 2018
Hallo Fabian,
ich frage mich zwar, ob das irgendwie an einer anderen Stelle noch "allgemeingültiger" geht, aber mir fällt nichts ein.
Reviewed-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
Grüße
Adrian
> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces at freifunk.net] On Behalf Of
> Fabian Bläse
> Sent: Montag, 3. Dezember 2018 20:55
> To: franken-dev at freifunk.net
> Subject: [PATCH 2/2] configurehood: Don't offer hoodfile when using local
> hoodfile
>
> 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 <fabian at blaese.de>
> ---
> 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
> --
> 2.19.1
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : nicht verfügbar
Dateityp : application/pgp-signature
Dateigröße : 834 bytes
Beschreibung: nicht verfügbar
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20181206/f6a9410a/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev