dropbear: fix do_install for all distros that aren't named 'openmoko'
authorKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 13:04:34 +0000 (14:04 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 30 Oct 2008 13:04:34 +0000 (14:04 +0100)
* 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

packages/dropbear/dropbear.inc

index 168cedb..26e3235 100644 (file)
@@ -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 () {