diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-07-21 03:29:27 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-07-21 03:29:27 +0000 |
commit | e6be70d904a00a9940ce74a7d44d60083cfdfbb7 (patch) | |
tree | c8749123b81569c07bbad5ce6a2da5021b7e2926 /drakpxelinux.pl | |
parent | eedd0c68baf5408d51a29b45b88ac8a6d470c3e2 (diff) | |
download | drakpxelinux-e6be70d904a00a9940ce74a7d44d60083cfdfbb7.tar drakpxelinux-e6be70d904a00a9940ce74a7d44d60083cfdfbb7.tar.gz drakpxelinux-e6be70d904a00a9940ce74a7d44d60083cfdfbb7.tar.bz2 drakpxelinux-e6be70d904a00a9940ce74a7d44d60083cfdfbb7.tar.xz drakpxelinux-e6be70d904a00a9940ce74a7d44d60083cfdfbb7.zip |
declare $in before restart_dialog()
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r-- | drakpxelinux.pl | 5 |
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); |