~xnox/lightdm/archive-upload

« back to all changes in this revision

Viewing changes to debian/lightdm.postinst

  • Committer: Robert Ancell
  • Date: 2013-11-27 03:48:36 UTC
  • mfrom: (1845 trunk)
  • mto: This revision was merged to the branch mainline in revision 1846.
  • Revision ID: robert.ancell@canonical.com-20131127034836-c9jba09zw4z3paur
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
# stdout, which can confuse debconf.
70
70
db_stop
71
71
 
72
 
# migrate gdm configuration on first-time installation
73
 
if [ -z "$2" ]; then
74
 
    if grep -q '^AutomaticLoginEnable *= *true$' /etc/gdm/custom.conf 2>/dev/null; then
75
 
        user=`sed -n '/^AutomaticLogin *=/ { s/^.*= *//; p }' /etc/gdm/custom.conf`
76
 
        if [ -n "$user" ]; then
77
 
            /usr/lib/lightdm/lightdm-set-defaults --keep-old --autologin="$user"
78
 
        fi
79
 
    fi
80
 
fi
81
 
 
82
72
case "$1" in
83
73
    configure)
84
74
        # LP: #1189948