From 2f0c0d0b8829b8aea97bc09833e172c59b55cd94 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 21 Jan 2007 00:41:04 +0000 Subject: Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo --- Config.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Config.in') diff --git a/Config.in b/Config.in index acdecccab..2066e42f9 100644 --- a/Config.in +++ b/Config.in @@ -231,6 +231,14 @@ config SELINUX Most people will leave this set to 'N'. +config FEATURE_EXEC_PREFER_APPLETS + bool "exec prefers applets" + default n + help + This is an experimental option which directs applets about to + call 'exec' to try and find an applicable busybox applet before + searching the executable path for a binary or symlink to execute. + config BUSYBOX_EXEC_PATH string "Path to BusyBox executable" default "/proc/self/exe" @@ -439,7 +447,7 @@ config INSTALL_APPLET_HARDLINKS config INSTALL_APPLET_DONT bool prompt "not installed" - depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL + depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL || FEATURE_EXEC_PREFER_APPLETS help Do not install applet links. Useful when using the -install feature or a standalone shell for rescue pruposes. -- cgit v1.2.3