3 gdm_conf=/etc/gdm/gdm.conf
4 if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
5 if [ -z "$(grep 'AutomaticLogin=brain' $gdm_conf)" ]; then
6 echo "Enabling autologin of user 'brain'."
7 sed -i -e 's/^\[daemon\]$/\[daemon\]\nAutomaticLoginEnable=true\nAutomaticLogin=brain\n/' $gdm_conf
10 # update gconf defaults tree