diff options
Diffstat (limited to 'recipes-bsp/lvds-ctrl')
-rw-r--r-- | recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb b/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb index 826070f..3710c7a 100644 --- a/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb +++ b/recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb @@ -1,6 +1,6 @@ DESCRIPTION = "Scripts to enable the LVDS converter on Apalis-T30" LICENSE = "Public Domain" -PR = "r1" +PR = "r2" SRC_URI = " \ file://lvds-dual-channel.sh \ @@ -17,3 +17,12 @@ 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 +} |