#!/bin/sh ## live-config(7) - System Configuration Scripts ## Copyright (C) 2006-2011 Daniel Baumann ## ## live-config comes with ABSOLUTELY NO WARRANTY; for details see COPYING. ## This is free software, and you are welcome to redistribute it ## under certain conditions; see COPYING for details. Gdm3 () { # Checking if package is installed or already configured if [ ! -e /var/lib/dpkg/info/gdm3.list ] then return fi if [ -e /var/lib/live/config/gdm3 ] then # Avoid xinit _X11="true" export _X11 return fi echo -n " gdm3" Configure_gdm3 } Configure_gdm3 () { # Checking if if package is already configured if grep -qs AutomaticLoginEnable=true /etc/gdm3/daemon.conf then return fi _GDM3_OPTIONS="AutomaticLoginEnable=true\n\ AutomaticLogin=${LIVE_USERNAME}\n\ TimedLoginEnable=true\n\ TimedLogin=${LIVE_USERNAME}\n\ TimedLoginDelay=10" sed -i -e "s|\[daemon\]|\[daemon\]\n${_GDM3_OPTIONS}|" /etc/gdm3/daemon.conf # Avoid xinit _X11="true" export _X11 # Creating state file touch /var/lib/live/config/gdm3 } Gdm3