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] bash: add creation of /usr/bin/sh link
Date: Wed,  7 Feb 2018 23:13:00 +0100	[thread overview]
Message-ID: <20180207221300.27905-1-mail@schmidt-andreas.de> (raw)

If bash is selected, but busybox not, no /usr/bin/sh will create.
This patch add possibility to do this.

Signed-off-by: Andreas Schmidt <mail@schmidt-andreas.de>
---
 rules/bash.in   | 10 ++++++++++
 rules/bash.make |  3 +++
 2 files changed, 13 insertions(+)

diff --git a/rules/bash.in b/rules/bash.in
index b902dfbc7..42f0bb420 100644
--- a/rules/bash.in
+++ b/rules/bash.in
@@ -261,4 +261,14 @@ config BASH_CURSES
 	bool
 	prompt "Use libcurses instead of libtermcap"
 
+if !BUSYBOX && BUSYBOX != m
+
+config BASH_SH
+	bool
+	prompt "sh"
+	help
+	  Choose bash to be the shell executed by 'sh' name.
+
+endif
+
 endif
diff --git a/rules/bash.make b/rules/bash.make
index 39a6b05fd..8228688f9 100644
--- a/rules/bash.make
+++ b/rules/bash.make
@@ -98,6 +98,9 @@ $(STATEDIR)/bash.targetinstall:
 ifdef PTXCONF_BUSYBOX_SH_IS_NONE
 	@$(call install_link, bash, bash, /usr/bin/sh)
 endif
+ifdef PTXCONF_BASH_SH
+	@$(call install_link, bash, bash, /usr/bin/sh)
+endif
 
 	@$(call install_finish, bash)
 
-- 
2.16.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2018-02-07 22:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07 22:13 Andreas Schmidt [this message]
2018-02-08  9:25 ` Michael Olbrich

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=20180207221300.27905-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