summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/bash/bash.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 64b476f4fb..99875bfc75 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -17,6 +17,8 @@ ALTERNATIVE_PRIORITY = "100"
17 17
18export AUTOHEADER = "true" 18export AUTOHEADER = "true"
19 19
20RDEPENDS_${PN} += "base-files"
21RDEPENDS_${PN}_class-nativesdk = ""
20RDEPENDS_${PN}-ptest += "make" 22RDEPENDS_${PN}-ptest += "make"
21 23
22do_configure_prepend () { 24do_configure_prepend () {
@@ -44,7 +46,9 @@ do_install_ptest () {
44} 46}
45 47
46pkg_postinst_${PN} () { 48pkg_postinst_${PN} () {
47 touch $D${sysconfdir}/shells 49 grep -q "^${base_bindir}/bash$" $D${sysconfdir}/shells || echo ${base_bindir}/bash >> $D${sysconfdir}/shells
48 grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells 50}
49 grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells 51
52pkg_postrm_${PN} () {
53 printf "$(grep -v "^${base_bindir}/bash$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
50} 54}