diff options
author | Phil Blundell <philb@gnu.org> | 2008-10-19 22:00:00 +0100 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2008-10-19 22:00:00 +0100 |
commit | d047ea450460173217152b00469d140e83922cfc (patch) | |
tree | ae8264bd64562168263eb52698896cdd5d83db0e /packages | |
parent | d33e6a9f1ed27003002b274740716fc74dff129d (diff) |
bluez-utils: don't blow up if ${base_sbindir} is same as ${sbindir}
Diffstat (limited to 'packages')
-rw-r--r-- | packages/bluez/bluez-utils3.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/bluez/bluez-utils3.inc b/packages/bluez/bluez-utils3.inc index 0bbba2cd14..c4debd01b2 100644 --- a/packages/bluez/bluez-utils3.inc +++ b/packages/bluez/bluez-utils3.inc @@ -76,9 +76,14 @@ OE_LT_RPATH_ALLOW[export]="1" do_install_append() { install -d ${D}${base_sbindir} ${D}${base_bindir}/ ${D}${sysconfdir}/apm/event.d/ - mv ${D}${sbindir}/* ${D}${base_sbindir}/ - mv ${D}${bindir}/* ${D}${base_bindir}/ - rmdir ${D}${bindir} ${D}${sbindir} + if [ "${sbindir}" != "${base_sbindir}" ]; then + mv ${D}${sbindir}/* ${D}${base_sbindir}/ + rmdir ${D}${sbindir} + fi + if [ "${bindir}" != "${base_bindir}" ]; then + mv ${D}${bindir}/* ${D}${base_bindir}/ + rmdir ${D}${bindir} + fi chmod u+s ${D}${base_sbindir}/hciattach ${D}${base_sbindir}/hciconfig install -m 0644 ${WORKDIR}/hcid.conf ${D}${sysconfdir}/bluetooth/ install -m 0644 ${S}/rfcomm/rfcomm.conf ${D}${sysconfdir}/bluetooth/ |