From 5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 26 Apr 2000 14:27:36 +0000 Subject: no_comment --- perl-install/standalone/drakboot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'perl-install/standalone/drakboot') 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`; -- cgit v1.2.1