diff options
Diffstat (limited to 'recipes-core/multitech/cell-radio-fwswitch_1.0.bb')
-rw-r--r-- | recipes-core/multitech/cell-radio-fwswitch_1.0.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-core/multitech/cell-radio-fwswitch_1.0.bb b/recipes-core/multitech/cell-radio-fwswitch_1.0.bb new file mode 100644 index 0000000..8c19029 --- /dev/null +++ b/recipes-core/multitech/cell-radio-fwswitch_1.0.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "Radio firmware switching functionality for dual image units (only LNA3 radios for now)" +SECTION = "base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +PR = "r1" + +RDEPENDS_${PN} = "radio-query radio-cmd" + +inherit update-rc.d + +INITSCRIPT_NAME = "cell-radio-fwswitch" +INITSCRIPT_PARAMS = "start 63 5 ." + +SRC_URI = "\ + file://cell-radio-fwswitch.default \ + file://cell-radio-fwswitch.init \ + file://cell-radio-fwswitch.sh \ +" + +do_install () { + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/cell-radio-fwswitch.init ${D}${sysconfdir}/init.d/cell-radio-fwswitch + + install -d ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/cell-radio-fwswitch.default ${D}${sysconfdir}/default/cell-radio-fwswitch + + install -d ${D}${sbindir} + install -m 0755 ${WORKDIR}/cell-radio-fwswitch.sh ${D}${sbindir}/cell-radio-fwswitch +} + +do_install_append_mtcap() { + # enable cell-radio-fwswitch init script on boot for MTCAP + sed -i 's/ENABLED="no"/ENABLED="yes"/g' ${D}${sysconfdir}/default/cell-radio-fwswitch +} |