summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/multitech/mts-io.inc')
-rw-r--r--recipes-bsp/multitech/mts-io.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc
index a71084b..5f17458 100644
--- a/recipes-bsp/multitech/mts-io.inc
+++ b/recipes-bsp/multitech/mts-io.inc
@@ -16,6 +16,7 @@ SRC_URI = " \
file://led-status_heartbeat_trigger \
file://mts-io.init \
file://radio-reset.init \
+ file://radio-reset.default \
"
S = "${WORKDIR}/git"
@@ -78,4 +79,12 @@ fakeroot do_install () {
install -d ${D}${libdir}/mts-io-sysfs
install -m 0755 io-tool/mts-io-sysfs-inc.sh ${D}${libdir}/mts-io-sysfs
install -m 0755 io-tool/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs
+
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/radio-reset.default ${D}${sysconfdir}/default/radio-reset
+}
+
+# disable radio-reset for the mtp hardware
+do_install_append_mtp() {
+ sed -i 's/ENABLED="yes"/ENABLED="no"/g' ${D}${sysconfdir}/default/radio-reset
}