mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Andreas Schmidt <mail@schmidt-andreas.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2] bash: add creation of /usr/bin/sh link
Date: Thu,  8 Feb 2018 19:16:28 +0100	[thread overview]
Message-ID: <20180208181628.14698-1-mail@schmidt-andreas.de> (raw)

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

                 reply	other threads:[~2018-02-08 18:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180208181628.14698-1-mail@schmidt-andreas.de \
    --to=mail@schmidt-andreas.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox