summaryrefslogtreecommitdiff
path: root/backend/modules
diff options
context:
space:
mode:
authorMaximilian Gerhard <maxbox@directbox.com>2012-06-23 22:36:37 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-10-11 22:52:57 +0200
commit9d8c72609f97d640547bfaf965c939c3450293cf (patch)
tree4cb3ce035ddf64db94aeef4e0fd5347dc89642fa /backend/modules
parent58d451063f793b91c2fdd59b134af528fa314a1b (diff)
downloadacritoxinstaller-9d8c72609f97d640547bfaf965c939c3450293cf.zip
acritoxinstaller-9d8c72609f97d640547bfaf965c939c3450293cf.tar.gz
added support for gdm3 autologin
Diffstat (limited to 'backend/modules')
-rw-r--r--backend/modules/install_main8
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/modules/install_main b/backend/modules/install_main
index 8cf7858..5c10b48 100644
--- a/backend/modules/install_main
+++ b/backend/modules/install_main
@@ -301,6 +301,14 @@ function copy_etc_to_target()
perl -pi -e "s|^[#\s]*(AutoLoginEnable).*|\1=$autologin|" $kdmrc
fi
+ # GDM3: auto login
+ [ -f $TARGET/etc/gdm3/daemon.conf ] && daemoncfg=$TARGET/etc/gdm3/daemon.conf
+ if [ -e $daemoncfg ]; then
+ perl -pi -e "s|^[#\s]*(AutomaticLogin)\s*=.*|\1=$cfg_username|" $daemoncfg
+ [ "$cfg_autologin" = "on" ] && autologin="true" || autologin="false"
+ perl -pi -e "s|^[#\s]*(AutomaticLoginEnable)\s*=.*|\1=$autologin|" $daemoncfg
+ fi
+
# Crypto
cp -a /etc/crypttab $TARGET/etc/crypttab