summaryrefslogtreecommitdiff
path: root/packages/usb-gadget-mode/usb-gadget-mode.bb
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2007-06-07 09:26:39 +0000
committerGraeme Gregory <dp@xora.org.uk>2007-06-07 09:26:39 +0000
commit194d2d606117e9ed50860aa41796cd9a51930e50 (patch)
treed542dd62e255b5888d02ad12d9d1c9ee7e1f994e /packages/usb-gadget-mode/usb-gadget-mode.bb
parenta5f0bf16d2273f5541bfeb0ccabf4a564fe0602f (diff)
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.
Diffstat (limited to 'packages/usb-gadget-mode/usb-gadget-mode.bb')
-rw-r--r--packages/usb-gadget-mode/usb-gadget-mode.bb17
1 files 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() {