From: Stefan Schmidt Date: Fri, 18 Feb 2011 10:26:48 +0000 (+0100) Subject: bash: Add bash-sh package to switch /bin/sh to /bin/bash X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f94e88e8a49ecae723de61ac5d04b0c3f8139eca;p=openembedded.git bash: Add bash-sh package to switch /bin/sh to /bin/bash An old change from hrw in the BugLabs repo I forgot to bring over earlier. --- diff --git a/recipes/bash/bash.inc b/recipes/bash/bash.inc index 239ddd1921..99c6398cfc 100644 --- a/recipes/bash/bash.inc +++ b/recipes/bash/bash.inc @@ -33,3 +33,16 @@ pkg_postinst () { grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells } + +PACKAGES += "bash-sh" +RDEPENDS_bash-sh = "bash" + +ALLOW_EMPTY_bash-sh = "1" + +pkg_postinst_bash-sh() { + cd $D/bin && ln -sf bash sh +} + +pkg_postrm_bash-sh() { + ln -sf /bin/busybox /bin/sh +} diff --git a/recipes/bash/bash_3.0.bb b/recipes/bash/bash_3.0.bb index 60e6707f2b..ec0510ed1f 100644 --- a/recipes/bash/bash_3.0.bb +++ b/recipes/bash/bash_3.0.bb @@ -1,5 +1,5 @@ require bash.inc -PR = "r13" +PR = "r14" SRC_URI += "\ file://bash-3.0-fixes.patch \ diff --git a/recipes/bash/bash_3.2.bb b/recipes/bash/bash_3.2.bb index 5a41882249..4758a4f600 100644 --- a/recipes/bash/bash_3.2.bb +++ b/recipes/bash/bash_3.2.bb @@ -1,6 +1,6 @@ require bash.inc -PR = "r11" +PR = "r12" SRC_URI += "\ file://builtins.patch \