fff-hoods: Restart alfred after keyxchange file update

This is a workaround to enable alfred on routers which do not see
a configap during initial boot.

Fixes: #78

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Adrian Schmutzler 2017-12-22 13:10:25 +01:00 committed by Tim Niemeyer
parent ef1ec21462
commit c7ffb50d3d
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,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