summaryrefslogtreecommitdiff
path: root/packages/dropbear
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-30 14:04:34 +0100
committerKoen Kooi <koen@openembedded.org>2008-10-30 14:04:34 +0100
commit4bbfd7ad9f6fca1669e7635dc28749ef11549b1c (patch)
tree50bd07ffcca47e7a7074b949037860ccd15a6530 /packages/dropbear
parent3f9ca3c829ee0b9175c2898918525c37a6d11398 (diff)
dropbear: fix do_install for all distros that aren't named 'openmoko'
* IMPORTANT: test -e foo && bar will make do_install exit with an error if 'foo' doesn't exist, so use the if [ -e foo ] ; then pattern instead
Diffstat (limited to 'packages/dropbear')
-rw-r--r--packages/dropbear/dropbear.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/dropbear/dropbear.inc b/packages/dropbear/dropbear.inc
index 168cedbf8a..26e3235b92 100644
--- a/packages/dropbear/dropbear.inc
+++ b/packages/dropbear/dropbear.inc
@@ -59,8 +59,9 @@ do_install() {
-e 's,/usr/bin,${bindir},g' \
-e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/dropbear
chmod 755 ${D}${sysconfdir}/init.d/dropbear
- test -e ${WORKDIR}/default && \
- install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear
+ if test -e ${WORKDIR}/default ; then
+ install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/dropbear
+ fi
}
pkg_postinst () {