summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/ChangeLog3
-rw-r--r--perl-install/Xconfigurator.pm7
2 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/ChangeLog b/perl-install/ChangeLog
index a06a5e184..8e0bca821 100644
--- a/perl-install/ChangeLog
+++ b/perl-install/ChangeLog
@@ -8,7 +8,8 @@
license.
* Xconfigurator.pm: removed Matrox G200/G400 3D acceleration by
- DRI, use only Mesa with Utah GLX.
+ DRI, use only Mesa with Utah GLX, fixed autologin for avoiding
+ drakres and no wm available.
2000-10-06 DrakX <install@linux-mandrake.com>
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 3f0863592..2a9d0ce10 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -1126,14 +1126,15 @@ Would you like X to start when you reboot?"), 1);
sub autologin {
my ($prefix, $o, $in, $install) = @_;
+ my $cmd = $prefix ? "chroot $prefix" : "";
+ my @wm = (split (' ', `$cmd /usr/sbin/chksession -l`));
my @etc_pass_fields = qw(name pw uid gid realname home shell);
my @users = mapgrep {
my %l; @l{@etc_pass_fields} = split ':';
$l{uid} > 500, $l{name};
} cat_("$prefix/etc/passwd");
- unless (($::auto && $o->{skiptest}) || !@users || $o->{authentication}{NIS} || $ENV{SECURE_LEVEL} > 3) {
- my $cmd = $prefix ? "chroot $prefix" : "";
- my @wm = (split (' ', `$cmd /usr/sbin/chksession -l`));
+ if (!($::isStandalone && $0 =~ /Xdrakres/) && !($::auto && $o->{skiptest}) &&
+ @wm && @users && !$o->{authentication}{NIS} && $ENV{SECURE_LEVEL} <= 3) {
my %l = getVarsFromSh("$prefix/etc/sysconfig/autologin");
$o->{autologin} ||= $l{USER};
$in->ask_from_entries_refH(_("Autologin"),