From patchwork Thu Jan 4 23:52:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3, 2/3] init.d/fff-hoods: Move call of configurehood to init.d script From: Adrian Schmutzler X-Patchwork-Id: 745 Message-Id: <1515109973-56285-2-git-send-email-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Fri, 5 Jan 2018 00:52:52 +0100 This ensures that configurehood is executed AFTER the LEDS are set up, but BEFORE alfred. If a configap is reachable, we are thus able to set up w2mesh before alfred tries to access br-mesh. As a side effect, we move the call of configurehood to the fff-hoods package, where it belongs. Signed-off-by: Adrian Schmutzler Tested-by: Adrian Schmutzler --- Changes in v2: none Changes in v3: - Changed START=99 to START=98 --- bsp/default/root_file_system/etc/rc.local | 4 ---- src/packages/fff/fff-hoods/files/etc/init.d/hood | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 src/packages/fff/fff-hoods/files/etc/init.d/hood diff --git a/bsp/default/root_file_system/etc/rc.local b/bsp/default/root_file_system/etc/rc.local index 7410bae..f174234 100755 --- a/bsp/default/root_file_system/etc/rc.local +++ b/bsp/default/root_file_system/etc/rc.local @@ -4,8 +4,4 @@ /usr/sbin/configurenetwork -sleep 3 - -/usr/sbin/configurehood - exit 0 diff --git a/src/packages/fff/fff-hoods/files/etc/init.d/hood b/src/packages/fff/fff-hoods/files/etc/init.d/hood new file mode 100755 index 0000000..63d58d3 --- /dev/null +++ b/src/packages/fff/fff-hoods/files/etc/init.d/hood @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +# Copyright 2017 Adrian Schmutzler +# License GPLv3 + +START=98 + +start() +{ + sleep 3 + /usr/sbin/configurehood +}