---
 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
-- 
2.14.5

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to