[PATCH] fff-hoods: Restart alfred after keyxchange file update
Adrian Schmutzler
freifunk at adrianschmutzler.de
Fr Dez 22 13:10:25 CET 2017
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