Le 13/08/2019 à 11:03, Bernhard Reutner-Fischer a écrit :
On 10 August 2019 14:38:42 CEST, David Demelier <[email protected]> wrote:
On Fri, 2019-07-05 at 14:25 +0200, David Demelier wrote:
---
init/init.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/init/init.c b/init/init.c
index 0f3c5fa4d..a875caf84 100644
--- a/init/init.c
+++ b/init/init.c
@@ -15,6 +15,14 @@
//config: help
//config: init is the first program run when the system boots.
//config:
+//config:config INIT_SCRIPT
+//config: string "Default init script to start"
+//config: default "/etc/init.d/rcS"
+//config: depends on INIT
+//config: help
+//config: Default init script to start.
+//config: Defaults to "/etc/init.d/rcS"
+//config:
//config:config LINUXRC
//config: bool "linuxrc: support running init from initrd (not
initramfs)"
//config: default y
@@ -160,7 +168,7 @@
/* Default sysinit script. */
#ifndef INIT_SCRIPT
-# define INIT_SCRIPT "/etc/init.d/rcS"
+# define INIT_SCRIPT CONFIG_INIT_SCRIPT
#endif
/* Each type of actions can appear many times. They will be
Anyone is interested?
Well just -DINIT_SCRIPT to your liking instead.
thanks,
TBH, this is a tunable that should be available as an option. Init
script is not standardized accross Linux distributions not based on
systemd. Having to specify a compile flag to change it instead of a
simple convenient option is a bit harsh.
Thanks anyway for the response.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox