]> code.ossystems Code Review - openembedded-core.git/commitdiff
usbinit: use ${sysconfdir} instead of /etc for packaging
authorJavier Martinez Canillas <javier@dowhile0.org>
Sun, 5 Aug 2012 19:48:52 +0000 (21:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Aug 2012 13:39:27 +0000 (14:39 +0100)
It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/usbinit/usbinit.bb

index e2a036ede76e29d3827cebc57dc5f1fde5e9f38f..37e3b1639bbf9ea35084fad92ffe239a9def8c18 100644 (file)
@@ -3,16 +3,16 @@ DESCRIPTION = "Initscript to manage gadget Ethernet"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "file://usb-gether \
            file://COPYING.GPL"
 S = "${WORKDIR}"
 
 do_install() {
-    install -d ${D}/etc
-    install -d ${D}/etc/init.d
-    install usb-gether ${D}/etc/init.d
+    install -d ${D}${sysconfdir}
+    install -d ${D}${sysconfdir}/init.d
+    install usb-gether ${D}${sysconfdir}/init.d
 }
 
 inherit update-rc.d allarch