From 194d2d606117e9ed50860aa41796cd9a51930e50 Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Thu, 7 Jun 2007 09:26:39 +0000 Subject: usb-gadget-mode.bb : fix the install to create /etc/default before putting files in it. Also fix all the install paths to use bitbake.conf vars. --- packages/usb-gadget-mode/usb-gadget-mode.bb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/usb-gadget-mode/usb-gadget-mode.bb b/packages/usb-gadget-mode/usb-gadget-mode.bb index ab373c772d..3109a4d92e 100644 --- a/packages/usb-gadget-mode/usb-gadget-mode.bb +++ b/packages/usb-gadget-mode/usb-gadget-mode.bb @@ -15,7 +15,7 @@ LICENSE = "GPL" ###################################################################################### PV = "0.0.1" -PR = "r1" +PR = "r2" ###################################################################################### @@ -30,13 +30,14 @@ SRC_URI = "file://usb-gadget.conf \ ###################################################################################### do_install() { - install -d ${D}/etc - install -d ${D}/etc/init.d - install -d ${D}/usr/bin - - install -m 0644 ${WORKDIR}/usb-gadget.conf ${D}/etc/default/usb-gadget - install -m 0755 ${WORKDIR}/usb-gadget.init ${D}/etc/init.d/usb-gadget - install -m 0755 ${WORKDIR}/usb-gadget ${D}/usr/bin + install -d ${D}${sysconfdir} + install -d ${D}${sysconfdir}/init.d + install -d ${D}${bindir} + install -d ${D}${sysconfdir}/default + + install -m 0644 ${WORKDIR}/usb-gadget.conf ${D}${sysconfdir}/default/usb-gadget + install -m 0755 ${WORKDIR}/usb-gadget.init ${D}${sysconfdir}/init.d/usb-gadget + install -m 0755 ${WORKDIR}/usb-gadget ${D}${bindir} } pkg_postinst() { -- cgit v1.2.3