diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-13 22:52:55 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2013-02-13 22:52:55 +0100 |
commit | a4b85df4fa61050af3fcb7e334875dde8fca32d2 (patch) | |
tree | c4a523ede9e49d0effbdb7fb036184c4e73c8eec /backend/modules/install_main | |
parent | cc21dd2b5b89237f8528e290f4473b18d47e6e74 (diff) | |
download | acritoxinstaller-a4b85df4fa61050af3fcb7e334875dde8fca32d2.zip acritoxinstaller-a4b85df4fa61050af3fcb7e334875dde8fca32d2.tar.gz |
added LightDM autologin
Diffstat (limited to 'backend/modules/install_main')
-rw-r--r-- | backend/modules/install_main | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/modules/install_main b/backend/modules/install_main index f8c930f..aad3c56 100644 --- a/backend/modules/install_main +++ b/backend/modules/install_main @@ -308,6 +308,13 @@ function copy_etc_to_target() [ "$cfg_autologin" = "on" ] && autologin="true" || autologin="false" perl -pi -e "s|^[#\s]*(AutomaticLoginEnable)\s*=.*|\1=$autologin|" $daemoncfg fi + + # LightDM: auto login + if [ -e $TARGET/etc/lightdm/lightdm.conf ]; then + sed -i -r -e "s|^#.*autologin-user=.*\$|autologin-user=$cfg_username|" \ + -e "s|^#.*autologin-user-timeout=.*\$|autologin-user-timeout=0|" \ + $TARGET/etc/lightdm/lightdm.conf + fi # Crypto cp -a /etc/crypttab $TARGET/etc/crypttab |