summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-02-17 17:02:20 +0000
committerOlivier Blin <oblin@mandriva.org>2005-02-17 17:02:20 +0000
commit8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154 (patch)
treeab3ab07703df104a93a37b16bfad962fa68eeae0 /perl-install/standalone
parent97f2b6059d2b75c41a4597aef5ac78495ab230ff (diff)
downloaddrakx-8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154.tar
drakx-8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154.tar.gz
drakx-8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154.tar.bz2
drakx-8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154.tar.xz
drakx-8915b898264a9e6c42f4ec5ef9b3e41f6c4f2154.zip
don't use net_cnx_up anymore
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 742e43c01..181527f46 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -442,7 +442,7 @@ sub build_notebook {
$dialing_mode_radio[1]->signal_connect(toggled => sub { $gui->{intf_radio}{dialing_mode} = 'static'; $apply->() });
$speed_radio[0]->signal_connect(toggled => sub { $gui->{intf_radio}{speed} = '64'; $apply->() });
$speed_radio[1]->signal_connect(toggled => sub { $gui->{intf_radio}{speed} = '128'; $apply->() });
- $gui->{intf_bool}{ONBOOT}->set_active($interface eq 'adsl' ? adsl_atboot() : ($intf->{ONBOOT} eq 'yes' ? 1 : 0));
+ $gui->{intf_bool}{ONBOOT}->set_active($intf->{ONBOOT} eq 'yes' ? 1 : 0);
$gui->{intf_bool}{MII_NOT_SUPPORTED}->set_active($intf->{MII_NOT_SUPPORTED} eq 'no' ? 1 : 0);
$gui->{intf_bool}{HWADDR}->set_active($intf->{HWADDR});
}
@@ -772,7 +772,6 @@ sub apply {
sub ethisup { `LC_ALL=C LANGUAGE=C /sbin/ifconfig $_[0]` =~ /inet/ }
sub chk_internet() { `LC_ALL=C LANGUAGE=C /sbin/chkconfig --list | grep internet` =~ /:on/ ? 1 : 0 };
-sub adsl_atboot() { (any { /x--boot_time/ } cat_($network::tools::connect_file)) ? 0 : 1 };
sub update_intbutt() {
$int_state->set($isconnected ? N("Connected") : N("Not connected"));