summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drakpxelinux.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 4a2ad83..3390b0d 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -108,6 +108,8 @@ sub get_items {
return @items;
}
+my $in = 'interactive'->vnew('su');
+
sub restart_dialog {
my $cmd = "service pxe restart";
my $w = $in->wait_message(N("PXE server"), N("Restarting PXE server..."));
@@ -120,9 +122,6 @@ sub set_help_tip {
gtkset_tip(new Gtk2::Tooltips, $entry, formatAlaTeX($help{$key}));
}
-
-my $in = 'interactive'->vnew('su');
-
if (!$::testing && !$in->do_pkgs->ensure_is_installed('pxe', $network::pxe::pxe_config_file)) {
err_dialog(N("Error!"), N("missing %s\n\nPlease install the pxe package.", $network::pxe::pxe_config_file));
$in->exit(-1);