[PATCH v4 2/2] init.d/fff-hoods: Move call of configurehood to init.d script

Adrian Schmutzler freifunk at adrianschmutzler.de
So Jan 21 22:55:20 CET 2018


This moves the first call of configurehood out of rc.local
to the fff-hoods package where it belongs.

This ensures that configurehood is executed AFTER the LEDS,
so LEDs are set up in case of long waiting times for random.

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
Tested-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>

---

Changes in v2:
none

Changes in v3:
- Changed START=99 to START=98

Changes in v4:
- Rephrased commit message/justification
- Content of patch untouched

Dieser Patch macht effektiv nur, dass jetzt die LEDs funktionieren,
bevor das Skript läuft. Die alfred Thematik ist davon unbeeinflusst.
(Das war in älteren Versionen anders)

Patch 3/3 wurde entfernt.
---
 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
+}
-- 
2.7.4



Mehr Informationen über die Mailingliste franken-dev