[PATCH] fff-hoods: Restart alfred after keyxchange file update

Tim Niemeyer tim at tn-x.org
So Jan 21 13:55:06 CET 2018


Hi

Wie besprochen applied und ein neues Ticket eröffnet um den Workaround
später nochmal vertiefen zu können:
https://mantis.freifunk-franken.de/view.php?id=87

Tim

Am Freitag, den 22.12.2017, 13:10 +0100 schrieb Adrian Schmutzler:
> This is a workaround to enable alfred on routers which do not see
> a configap during initial boot.
> 
> Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> 
> ---
> 
> Although this might not be popular, it should fix the problem
> perfectly. Since I do not think we solve the underlying issue
> shortly, I think this patch should help in the meantime.
> ---
>  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index e6a47df..31ecffa 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -270,6 +270,8 @@ if [ -s "$hoodfile" ]; then
>  		cp "$hoodfile" "$hoodfilecopy"
>  		[ -s "$sectortmp" ] && cp "$sectortmp" "$sectorcopy"
>  
> +		# This is a workaround to enable alfred on devices
> which do not see a configap during initial setup
> +		/etc/init.d/alfred restart
>  	else
>  		echo "We have no new file. We do nothing. We try it
> again in 5 minutes...";
>  	fi
> -- 
> 2.7.4
> 
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 488 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20180121/ea3c5a71/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev