From: Roger Monk Date: Fri, 6 Aug 2010 13:56:32 +0000 (+0100) Subject: angstrom: Add (hack) recipe to enable autologin (timed) for gdm X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba990688f20b9c86a480356b3412aaf57829360e;p=openembedded.git angstrom: Add (hack) recipe to enable autologin (timed) for gdm * Append autologin to default custom.conf * Longer term need better replacement/conf mechanism Signed-off-by: Roger Monk Signed-off-by: Koen Kooi --- diff --git a/recipes/angstrom/angstrom-gdm-autologin-hack.bb b/recipes/angstrom/angstrom-gdm-autologin-hack.bb new file mode 100644 index 0000000000..5c5d7e8172 --- /dev/null +++ b/recipes/angstrom/angstrom-gdm-autologin-hack.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Append Autologin to GDM config (custom.conf)" + +PACKAGE_ARCH = "all" +ALLOW_EMPTY_${PN} = "1" + +pkg_postinst_${PN}() { +#!/bin/sh +grep "TimedLogin" $D/etc/gdm/custom.conf +if [ $? -eq 0 ]; then + echo "NOTE:: custom.conf already has 'TimedLogin' configured - not patching +else + cat >> $D/etc/gdm/custom.conf <