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 <<EOF

[daemon]
TimedLoginEnable=true
TimedLogin=root
TimedLoginDelay=10

EOF
fi
}

RDEPENDS_${PN} = "gdm"

Add (hack) recipe to enable autologin (timed) for gdm
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 <d23a2d7364ff5b9274b46f5bc00c2488a2111ac3@ti.com>
Signed-off-by: Koen Kooi <aeb23945acf582c79fe8e7da695ed6eac02acbbd@ti.com>
