diff options
Diffstat (limited to 'recipes-bsp/multitech/mts-io.inc')
-rw-r--r-- | recipes-bsp/multitech/mts-io.inc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc index 8a38e01..47e9cae 100644 --- a/recipes-bsp/multitech/mts-io.inc +++ b/recipes-bsp/multitech/mts-io.inc @@ -7,14 +7,15 @@ LIC_FILES_CHKSUM = "file://io-module/COPYING;md5=94d55d512a9ba36caa9b7df079bae19 file://io-tool/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ " DEPENDS = "virtual/kernel" -INC_PR = "r5" +INC_PR = "r6" SRCREV = "${PV}" SRC_URI = " \ - file://mts-io.init \ git://git.multitech.net/mts-io.git;protocol=git \ file://led-status_heartbeat_trigger \ + file://mts-io.init \ + file://radio-reset.init \ " S = "${WORKDIR}/git" @@ -40,11 +41,9 @@ do_compile () { PACKAGES = "${PN}" FILES_${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mts_io.ko" -FILES_${PN} += "${sysconfdir}/init.d/mts-io" +FILES_${PN} += "${sysconfdir}" FILES_${PN} += "${libdir}/mts-io-sysfs*" FILES_${PN} += "${sbindir}/mts-io-sysfs" -FILES_${PN} += "${sysconfdir}/init.d/led-status_heartbeat_trigger" -FILES_${PN} += "${sysconfdir}/rc5.d/S99led-status_heartbeat_trigger" INITSCRIPT_NAME = "mts-io" INITSCRIPT_PARAMS = "start 39 S ." @@ -64,9 +63,15 @@ fakeroot do_install () { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/mts-io.init ${D}${sysconfdir}/init.d/mts-io - - install -d ${D}/${sysconfdir}/rc5.d + install -m 0755 ${WORKDIR}/radio-reset.init ${D}${sysconfdir}/init.d/radio-reset install -m 0755 ${WORKDIR}/led-status_heartbeat_trigger ${D}/${sysconfdir}/init.d/ + + # run radio-reset on reboot + install -d ${D}${sysconfdir}/rc6.d + ln -sf ${sysconfdir}/init.d/radio-reset ${D}/${sysconfdir}/rc6.d/S30radio-reset + + # blink status LED after booted + install -d ${D}${sysconfdir}/rc5.d ln -sf ${sysconfdir}/init.d/led-status_heartbeat_trigger ${D}/${sysconfdir}/rc5.d/S99led-status_heartbeat_trigger install -m 0755 -d ${D}${sbindir} |