summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/get-eeprom-device-config_1.1.0.bb
blob: c2330c3646bd6b8a95a2c9effbecf1b37247b652 (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
26
27
28
29
30
31
32
# Script to copy the EEPROM to /run/config and
# init script to populate /run/config
inherit update-rc.d
PR = "r1"
DESCRIPTION = "EEPROM copyting tool"
HOMEPAGE = "http://www.multitech.net/"
SECTION = "console/utils"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe"
RDEPENDS_${PN} =+ "bash"

SRCREV = "${PV}"

SRC_URI = "file://${PN}.sh \
           file://init"

PARALLEL_MAKE = ""


fakeroot do_install_append() {
    # install MTCAP mts-io init script
    install -d 0755 ${D}${base_sbindir}
    install -d 0755 ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/${PN}.sh  ${D}${base_sbindir}/${PN}
    install -m 0755 ${WORKDIR}/init  ${D}${sysconfdir}/init.d/eeprom-config
}


INITSCRIPT_NAME = "eeprom-config"
# Must start after MTS-IO to read the accessory cards.
INITSCRIPT_PARAMS = "start 40 S ."