From f3792465452112caee8e5da971def68882423f6e Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 20 Mar 2013 10:25:11 +0100 Subject: lvds: autostart the dual lane script --- recipes-bsp/lvds-ctrl/lvds-ctrl_1.0.bb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'recipes-bsp/lvds-ctrl') 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 +} -- cgit v1.2.3