summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/cell-radio-carrierswitch_1.0.bb
blob: 0220dbac93c39f1863759aa373a64deabeadcb18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 mlinux-scripts"

inherit update-rc.d
INITSCRIPT_NAME = "cell-radio-carrierswitch"
INITSCRIPT_PARAMS = "start 63 5 ."

SRC_URI = "\
  file://cell-radio-carrierswitch.default \
  file://cell-radio-carrierswitch.init \
"

do_install() {
    install -d ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/cell-radio-carrierswitch.init ${D}${sysconfdir}/init.d/cell-radio-carrierswitch

    install -d ${D}${sysconfdir}/default
    install -m 0644 ${WORKDIR}/cell-radio-carrierswitch.default ${D}${sysconfdir}/default/cell-radio-carrierswitch
}