summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-04-26 14:27:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-04-26 14:27:36 +0000
commit5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5 (patch)
tree6fcb1061f61245f6733c6fc8d17683ee9ce1f2ca /perl-install/standalone
parent893a0a70abc449d8dad2212923b4eed33d7c169d (diff)
downloaddrakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.gz
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.bz2
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.xz
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.zip
no_comment
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakboot7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index 2bcef5da4..8bff3e2eb 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -26,9 +26,10 @@ my %l = (
);
-x $l{$_} or delete $l{$_} foreach grep { $l{$_} } keys %l;
-my $cmd = $l{$in->ask_from_list(_("Choice"), _("What do you want to do?"), [ keys %l ])};
-exec $cmd if $cmd;
-
+if ($ENV{DISPLAY} && c::Xtest($ENV{DISPLAY})) {
+ my $cmd = $l{$in->ask_from_list(_("Choice"), _("What do you want to do?"), [ keys %l ])};
+ exec $cmd if $cmd;
+}
my $bootloader = lilo::read('', '/etc/lilo.conf');
local ($_) = `detectloader`;