diff options
author | Jon Ringle <jon@ringle.org> | 2010-03-19 11:55:05 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-19 18:01:02 +0100 |
commit | d3a71c59004fea795a1c0789cdf088133f68fa2d (patch) | |
tree | 0007fe01f85cba41065ccd9220f14d8c754c9d8d | |
parent | 763183724aedbc02a8546016d63080db4075e7be (diff) | |
download | ptxdist-d3a71c59004fea795a1c0789cdf088133f68fa2d.tar.gz ptxdist-d3a71c59004fea795a1c0789cdf088133f68fa2d.tar.xz |
[dash] Add option to link dash -> /bin/sh
Signed-off-by: Jon Ringle <jon@ringle.org>
[mkl: add help text]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | rules/dash.in | 15 | ||||
-rw-r--r-- | rules/dash.make | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/rules/dash.in b/rules/dash.in index fb30c9c4e..88ea87942 100644 --- a/rules/dash.in +++ b/rules/dash.in @@ -1,10 +1,21 @@ ## SECTION=shell_and_console -config DASH + +menuconfig DASH tristate - prompt "dash" + prompt "dash " help DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as possible. It does this without sacrificing speed where possible. In fact, it is significantly faster than bash (the GNU Bourne-Again SHell) for most tasks. +if DASH + +config DASH_LINK_SH + bool + prompt "link to /bin/sh" + help + Create a link "/bin/sh" that points to "/bin/dash". Select + this if dash should be you default shell + +endif diff --git a/rules/dash.make b/rules/dash.make index 04c2f14bf..407fbf90a 100644 --- a/rules/dash.make +++ b/rules/dash.make @@ -64,6 +64,10 @@ $(STATEDIR)/dash.targetinstall: @$(call install_copy, dash, 0, 0, 0755, -, /bin/dash) +ifdef PTXCONF_DASH_LINK_SH + @$(call install_link, dash, dash, /bin/sh) +endif + @$(call install_finish, dash) @$(call touch) |