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

mail at adrianschmutzler.de mail at adrianschmutzler.de
Sa Jan 20 13:01:35 CET 2018


Hallo Tim,

"Unter der Voraussetzung, dass der Patch reverted wird, wenn br-mesh sauber angelegt wird:"

Das geht nur so. Wenn du kein verbundenes Kabel hast und zum Boot kein configap verfügbar ist, dann gibt es kein "aktives" Interface im br-mesh. Und dann kommt das auch nicht hoch.

Da müsste man dann entweder ein Dummy-WLAN-Interface anlegen oder die eth Interface irgendwie ohne Kabel aktiv machen.

Grüße

Adrian

> -----Original Message-----
> From: Tim Niemeyer [mailto:tim at tn-x.org]
> Sent: Samstag, 20. Januar 2018 12:56
> To: Adrian Schmutzler <freifunk at adrianschmutzler.de>; franken-
> dev at freifunk.net
> Subject: Re: [PATCH] fff-hoods: Restart alfred after keyxchange file update
> 
> Hi
> 
> Als Workaround wäre es erstmal ok, eigentlich müssten wir dazu aber noch
> die Abhängigkeit zu fff-alfred im Package modellieren.
> 
> Unter der Voraussetzung, dass der Patch reverted wird, wenn br-mesh
> sauber angelegt wird:
> Reviewed-by: Tim Niemeyer <tim at tn-x.org>
> 
> 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
> >



Mehr Informationen über die Mailingliste franken-dev