2012-09-04 12:11:51 +00:00
|
|
|
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
2013-07-10 12:51:30 +00:00
|
|
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
|
2015-05-12 18:41:27 +00:00
|
|
|
PRINC = "27"
|
2012-09-04 12:11:51 +00:00
|
|
|
|
|
|
|
SRC_URI += "file://busybox-ifplugd.sh \
|
2015-04-21 20:26:42 +00:00
|
|
|
file://ifplugd.sh \
|
|
|
|
file://udhcpc-ntp.sh \
|
|
|
|
file://udhcpc-ntp.default \
|
2015-05-12 18:41:27 +00:00
|
|
|
file://udhcpc.default \
|
2015-04-21 20:26:42 +00:00
|
|
|
"
|
2012-09-04 12:11:51 +00:00
|
|
|
|
2015-04-21 20:26:42 +00:00
|
|
|
PACKAGES =+ "${PN}-ifplugd ${PN}-udhcpc-ntp"
|
2012-09-04 12:11:51 +00:00
|
|
|
|
2015-05-12 18:41:27 +00:00
|
|
|
FILES_${PN}-udhcpc += "${sysconfdir}/default/udhcpc"
|
|
|
|
|
2012-09-04 12:11:51 +00:00
|
|
|
FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd.sh ${sysconfdir}/init.d/busybox-ifplugd.sh"
|
|
|
|
|
2015-04-21 20:26:42 +00:00
|
|
|
FILES_${PN}-udhcpc-ntp = "${sysconfdir}/udhcpc.d/60ntp \
|
|
|
|
${sysconfdir}/default/udhcpc-ntp \
|
|
|
|
"
|
|
|
|
|
2015-05-12 18:41:27 +00:00
|
|
|
CONFFILES_${PN}-udhcpc += "${sysconfdir}/default/udhcpc"
|
2015-04-21 20:26:42 +00:00
|
|
|
CONFFILES_${PN}-udhcpc-ntp = "${sysconfdir}/default/udhcpc-ntp"
|
|
|
|
|
2012-09-04 12:11:51 +00:00
|
|
|
INITSCRIPT_PACKAGES += "${PN}-ifplugd"
|
|
|
|
INITSCRIPT_NAME = "busybox-ifplugd.sh"
|
|
|
|
|
2015-04-21 20:26:42 +00:00
|
|
|
RDEPENDS_${PN}-udhcpc-ntp = "${PN}-udhcpc"
|
|
|
|
|
2012-09-04 12:11:51 +00:00
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
install -m 0755 ${WORKDIR}/ifplugd.sh ${D}${sysconfdir}/
|
|
|
|
install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/
|
2015-04-21 20:26:42 +00:00
|
|
|
install -m 0755 ${WORKDIR}/udhcpc-ntp.sh ${D}/${sysconfdir}/udhcpc.d/60ntp
|
2015-05-06 09:23:21 +00:00
|
|
|
install -d ${D}/${sysconfdir}/default
|
2015-04-21 20:26:42 +00:00
|
|
|
install -m 0644 ${WORKDIR}/udhcpc-ntp.default ${D}/${sysconfdir}/default/udhcpc-ntp
|
2015-05-12 18:41:27 +00:00
|
|
|
install -m 0644 ${WORKDIR}/udhcpc.default ${D}/${sysconfdir}/default/udhcpc
|
2012-09-04 12:11:51 +00:00
|
|
|
}
|