mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] bash: add creation of /usr/bin/sh link
@ 2018-02-08 18:16 Andreas Schmidt
  0 siblings, 0 replies; only message in thread
From: Andreas Schmidt @ 2018-02-08 18:16 UTC (permalink / raw)
  To: ptxdist

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 <mail@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-08 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-08 18:16 [ptxdist] [PATCH v2] bash: add creation of /usr/bin/sh link Andreas Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox