summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/finish-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/finish-install')
-rwxr-xr-xperl-install/standalone/finish-install8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 8dd17fb6f..5a26090c2 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -92,12 +92,12 @@ sub ask_users() {
if (@$users && $old_user) {
$users->[0]{rename_from} = $old_user;
$users->[0]{home} ||= '/home/' . $users->[0]{name};
- my $autologin = any::get_autologin();
- $old_autologin = $autologin->{autologin} eq $old_user && $autologin->{desktop};
}
+ my $autologin = any::get_autologin();
+ $autologin_first = ($autologin->{autologin} eq $old_user || $conf{USER_AUTOLOGIN_FIRST} eq "yes") && $autologin->{desktop};
any::add_users($users, $authentication);
- any::set_autologin($in->do_pkgs, $users->[0]{name}, $old_autologin)
- if $old_autologin;
+ any::set_autologin($in->do_pkgs, $users->[0]{name}, $autologin_first)
+ if $autologin_first;
}
sub ask_glx() {