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>
This commit is contained in:
parent
250dd223ca
commit
7ada514100
|
@ -3,16 +3,16 @@ DESCRIPTION = "Initscript to manage gadget Ethernet"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
|
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
SRC_URI = "file://usb-gether \
|
SRC_URI = "file://usb-gether \
|
||||||
file://COPYING.GPL"
|
file://COPYING.GPL"
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}/etc
|
install -d ${D}${sysconfdir}
|
||||||
install -d ${D}/etc/init.d
|
install -d ${D}${sysconfdir}/init.d
|
||||||
install usb-gether ${D}/etc/init.d
|
install usb-gether ${D}${sysconfdir}/init.d
|
||||||
}
|
}
|
||||||
|
|
||||||
inherit update-rc.d allarch
|
inherit update-rc.d allarch
|
||||||
|
|
Loading…
Reference in New Issue