From dbf76b42706e35368d616e1c004fb2a813aed962 Mon Sep 17 00:00:00 2001 From: damien Date: Mon, 5 Mar 2001 22:34:40 +0000 Subject: required gtk only if needed, added redirection to newt if needed --- perl-install/standalone/draknet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl-install/standalone/draknet b/perl-install/standalone/draknet index c93f67cd9..252b73aa6 100755 --- a/perl-install/standalone/draknet +++ b/perl-install/standalone/draknet @@ -20,8 +20,6 @@ #use Data::Dumper; -use Gtk; -init Gtk; use lib qw(/usr/lib/libDrakX); use interactive; @@ -62,7 +60,9 @@ $::wizard_xpm = "/usr/share/pixmaps/internet.xpm"; my $in = vnew interactive('su'); -$::isEmbedded or goto dd; +$::isEmbedded && ref($in) =~ /gtk/ or goto dd; +require Gtk; +init Gtk; netconnect::read_net_conf('', $netcnx, $netc); any::setup_thiskind_backend('net', undef); my @all_cards = netconnect::conf_network_card_backend ('', $netc, $intf, undef, undef, undef, undef); -- cgit v1.2.1