[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH] busybox: make bash a valid login shell if enabled
From: Andreas Oberritter <obi () opendreambox ! org>
Date: 2017-04-28 18:31:29
Message-ID: 1493404289-17342-1-git-send-email-obi () opendreambox ! org
[Download RAW message or body]
Add bash to /etc/shells if busybox is built with bash applet anabled
to fix login via dropbear.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
meta/recipes-core/busybox/busybox.inc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/recipes-core/busybox/busybox.inc \
b/meta/recipes-core/busybox/busybox.inc index 375632d..adc6e9a 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -398,6 +398,9 @@ pkg_postinst_${PN} () {
fi
done
fi
+ if grep -q "^${base_bindir}/bash$" $D${sysconfdir}/busybox.links*; then
+ grep -q "^${base_bindir}/bash$" $D${sysconfdir}/shells || echo ${base_bindir}/bash \
>> $D${sysconfdir}/shells + fi
}
pkg_prerm_${PN} () {
@@ -422,6 +425,12 @@ pkg_prerm_${PN} () {
export PATH=$PATH:$tmpdir
}
+pkg_postrm_${PN} () {
+ if grep -q "^${base_bindir}/bash$" $D${sysconfdir}/busybox.links* && [ ! -e \
$D${base_bindir}/bash ]; then + printf "$(grep -v "^${base_bindir}/bash$" \
$D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells + fi
+}
+
pkg_prerm_${PN}-syslog () {
# remove syslog
if test "x$D" = "x"; then
--
2.7.4
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic