diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-08-05 21:48:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-06 15:18:50 +0100 |
commit | 7ada514100a94f323c762ce16dc1eec4bfb6a81c (patch) | |
tree | 899edca86aed2c71913cb0922c7d440739eca26b /meta/recipes-bsp/usbinit/usbinit.bb | |
parent | 250dd223ca6d81aa14557274eafcfccda5bc459d (diff) | |
download | poky-7ada514100a94f323c762ce16dc1eec4bfb6a81c.tar.gz |
usbinit: use ${sysconfdir} instead of /etc for packaging
It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.
(From OE-Core rev: 3068d5c44667bc238f2331d36cb116403560c83f)
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/usbinit/usbinit.bb')
-rw-r--r-- | meta/recipes-bsp/usbinit/usbinit.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-bsp/usbinit/usbinit.bb b/meta/recipes-bsp/usbinit/usbinit.bb index e2a036ede7..37e3b1639b 100644 --- a/meta/recipes-bsp/usbinit/usbinit.bb +++ b/meta/recipes-bsp/usbinit/usbinit.bb | |||
@@ -3,16 +3,16 @@ DESCRIPTION = "Initscript to manage gadget Ethernet" | |||
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" | 4 | LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe" |
5 | 5 | ||
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | SRC_URI = "file://usb-gether \ | 8 | SRC_URI = "file://usb-gether \ |
9 | file://COPYING.GPL" | 9 | file://COPYING.GPL" |
10 | S = "${WORKDIR}" | 10 | S = "${WORKDIR}" |
11 | 11 | ||
12 | do_install() { | 12 | do_install() { |
13 | install -d ${D}/etc | 13 | install -d ${D}${sysconfdir} |
14 | install -d ${D}/etc/init.d | 14 | install -d ${D}${sysconfdir}/init.d |
15 | install usb-gether ${D}/etc/init.d | 15 | install usb-gether ${D}${sysconfdir}/init.d |
16 | } | 16 | } |
17 | 17 | ||
18 | inherit update-rc.d allarch | 18 | inherit update-rc.d allarch |