diff options
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-x | perl-install/standalone/drakboot | 7 |
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`; |