diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/modules/install_main | 8 |
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 |