[v2,1/3] init.d: Set /tmp/started through init.d instead of rc.local

Submitted by Adrian Schmutzler on Dec. 26, 2017, 11:56 a.m.

Details

Message ID 1514289364-1770-1-git-send-email-freifunk@adrianschmutzler.de
State Superseded
Headers show

Commit Message

Adrian Schmutzler Dec. 26, 2017, 11:56 a.m.
This ensures that /tmp/started is actually set after the end
of the boot process.

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

---

Changes in v2:
none
---
 bsp/default/root_file_system/etc/init.d/zdone | 11 +++++++++++
 bsp/default/root_file_system/etc/rc.local     |  2 --
 2 files changed, 11 insertions(+), 2 deletions(-)
 create mode 100755 bsp/default/root_file_system/etc/init.d/zdone

Patch hide | download patch | download mbox

diff --git a/bsp/default/root_file_system/etc/init.d/zdone b/bsp/default/root_file_system/etc/init.d/zdone
new file mode 100755
index 0000000..f4aaf02
--- /dev/null
+++ b/bsp/default/root_file_system/etc/init.d/zdone
@@ -0,0 +1,11 @@ 
+#!/bin/sh /etc/rc.common
+
+# Copyright 2017 Adrian Schmutzler
+# License GPLv3
+
+START=99
+
+start()
+{
+	touch /tmp/started
+}
diff --git a/bsp/default/root_file_system/etc/rc.local b/bsp/default/root_file_system/etc/rc.local
index 59042c3..7410bae 100755
--- a/bsp/default/root_file_system/etc/rc.local
+++ b/bsp/default/root_file_system/etc/rc.local
@@ -8,6 +8,4 @@  sleep 3
 
 /usr/sbin/configurehood
 
-touch /tmp/started
-
 exit 0

Comments

Adrian Schmutzler Dec. 27, 2017, 1:13 p.m.
Getestet auf WR841 und AC-Mesh.

Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf
> Of Adrian Schmutzler
> Sent: Dienstag, 26. Dezember 2017 12:56
> To: franken-dev@freifunk.net
> Subject: [PATCH v2 1/3] init.d: Set /tmp/started through init.d instead of
> rc.local
> 
> This ensures that /tmp/started is actually set after the end of the boot
> process.
> 
> Signed-off-by: Christian Dresel <fff@chrisi01.de>
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> 
> ---
> 
> Changes in v2:
> none
> ---
>  bsp/default/root_file_system/etc/init.d/zdone | 11 +++++++++++
>  bsp/default/root_file_system/etc/rc.local     |  2 --
>  2 files changed, 11 insertions(+), 2 deletions(-)  create mode 100755
> bsp/default/root_file_system/etc/init.d/zdone
> 
> diff --git a/bsp/default/root_file_system/etc/init.d/zdone
> b/bsp/default/root_file_system/etc/init.d/zdone
> new file mode 100755
> index 0000000..f4aaf02
> --- /dev/null
> +++ b/bsp/default/root_file_system/etc/init.d/zdone
> @@ -0,0 +1,11 @@
> +#!/bin/sh /etc/rc.common
> +
> +# Copyright 2017 Adrian Schmutzler
> +# License GPLv3
> +
> +START=99
> +
> +start()
> +{
> +	touch /tmp/started
> +}
> diff --git a/bsp/default/root_file_system/etc/rc.local
> b/bsp/default/root_file_system/etc/rc.local
> index 59042c3..7410bae 100755
> --- a/bsp/default/root_file_system/etc/rc.local
> +++ b/bsp/default/root_file_system/etc/rc.local
> @@ -8,6 +8,4 @@ sleep 3
> 
>  /usr/sbin/configurehood
> 
> -touch /tmp/started
> -
>  exit 0
> --
> 2.7.4
> 
> --
> franken-dev mailing list
> franken-dev@freifunk.net
> http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net