From d3a71c59004fea795a1c0789cdf088133f68fa2d Mon Sep 17 00:00:00 2001 From: Jon Ringle Date: Fri, 19 Mar 2010 11:55:05 -0400 Subject: [dash] Add option to link dash -> /bin/sh Signed-off-by: Jon Ringle [mkl: add help text] Signed-off-by: Marc Kleine-Budde --- rules/dash.in | 15 +++++++++++++-- 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) -- cgit v1.2.3