summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-03-05 22:34:40 +0000
committerdamien <damien@mandriva.com>2001-03-05 22:34:40 +0000
commitdbf76b42706e35368d616e1c004fb2a813aed962 (patch)
treec5f736828319cb953f412c3f705a27a3a320304a /perl-install/standalone
parent62c2b5b104b979eb453b5e6886d80ae8459fb2a6 (diff)
downloaddrakx-backup-do-not-use-dbf76b42706e35368d616e1c004fb2a813aed962.tar
drakx-backup-do-not-use-dbf76b42706e35368d616e1c004fb2a813aed962.tar.gz
drakx-backup-do-not-use-dbf76b42706e35368d616e1c004fb2a813aed962.tar.bz2
drakx-backup-do-not-use-dbf76b42706e35368d616e1c004fb2a813aed962.tar.xz
drakx-backup-do-not-use-dbf76b42706e35368d616e1c004fb2a813aed962.zip
required gtk only if needed, added redirection to newt if needed
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/draknet6
1 files 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);