From patchwork Fri Dec 22 12:10:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fff-hoods: Restart alfred after keyxchange file update From: Adrian Schmutzler X-Patchwork-Id: 716 Message-Id: <1513944625-2149-1-git-send-email-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Fri, 22 Dec 2017 13:10:25 +0100 This is a workaround to enable alfred on routers which do not see a configap during initial boot. Signed-off-by: Adrian Schmutzler Reviewed-by: Tim Niemeyer --- 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