#!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac . /scripts/casper-functions if [ -d /root/etc/gdm ]; then # Configure GDM autologin GDMCustomFile=/root/etc/gdm/custom.conf AutologinParameters="AutomaticLoginEnable=false\n\ TimedLoginEnable=false" if ! `grep -qs 'AutomaticLoginEnable' $GDMCustomFile` ; then if ! `grep -qs '\[daemon\]' $GDMCustomFile` ; then echo '[daemon]' >> $GDMCustomFile fi sed -i "s/\[daemon\]/\[daemon\]\n$AutologinParameters/" $GDMCustomFile else sed -i "s/AutomaticLoginEnable=true/AutomaticLoginEnable=false/g" $GDMCustomFile sed -i "s/TimedLoginEnable=true/TimedLoginEnable=false/g" $GDMCustomFile fi fi chroot /root llxcfg-systemvars add GDM_AUTOLOGIN_MODE="N" || true exit 0