summaryrefslogtreecommitdiff
path: root/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb
blob: 3710c7ae4ec694cfcccc789bd128f4f25664ae64 (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
DESCRIPTION = "Scripts to enable the LVDS converter on Apalis-T30"
LICENSE = "Public Domain"
PR = "r2"

SRC_URI =  " \
    file://lvds-dual-channel.sh \
    file://lvds-single-channel.sh \
    file://COPYING \
"

LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=1c3a7fb45253c11c74434676d84fe7dd"

do_compile () {
}

do_install () {
    install -d ${D}/${bindir}
    install -m 0755 ${WORKDIR}/*.sh ${D}/${bindir}
}

pkg_postinst_${PN}() {
    mkdir -p ${sysconfdir}/xdg/lxsession/LXDE
    echo "${bindir}/lvds-dual-channel.sh" >> ${sysconfdir}/xdg/lxsession/LXDE/autostart
}

pkg_postremove_${PN}() {
    sed -i /${bindir}/lvds-dual-channel.sh/d ${sysconfdir}/xdg/lxsession/LXDE/autostart || true
}