If bash is selected, but busybox not, no /usr/bin/sh will create.
This patch create /usr/bin/sh link to bash in such case.

Signed-off-by: Andreas Schmidt <m...@schmidt-andreas.de>
---
 rules/bash.in   | 4 ++++
 rules/bash.make | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/rules/bash.in b/rules/bash.in
index b902dfbc7..4c1e0e12c 100644
--- a/rules/bash.in
+++ b/rules/bash.in
@@ -261,4 +261,8 @@ config BASH_CURSES
        bool
        prompt "Use libcurses instead of libtermcap"
 
+config BASH_SH
+       bool
+       default BUSYBOX = n || BUSYBOX_SH_IS_NONE
+
 endif
diff --git a/rules/bash.make b/rules/bash.make
index 39a6b05fd..7d12030b1 100644
--- a/rules/bash.make
+++ b/rules/bash.make
@@ -95,7 +95,7 @@ $(STATEDIR)/bash.targetinstall:
        @$(call install_fixup, bash,DESCRIPTION,missing)
 
        @$(call install_copy, bash, 0, 0, 0755, -, /usr/bin/bash)
-ifdef PTXCONF_BUSYBOX_SH_IS_NONE
+ifdef PTXCONF_BASH_SH
        @$(call install_link, bash, bash, /usr/bin/sh)
 endif
 
-- 
2.16.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to