summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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() {