summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-08-19 20:14:15 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-08-19 20:14:15 +0000
commitc0d415f452e65be30a0bd57340179dd69b3e7a7d (patch)
treeb7ecab733b6c87283b2d19a6592a69b237ecc1d5 /perl-install/standalone
parent8e30d3412f023908324a4b9b6caaa003c27886d4 (diff)
downloaddrakx-c0d415f452e65be30a0bd57340179dd69b3e7a7d.tar
drakx-c0d415f452e65be30a0bd57340179dd69b3e7a7d.tar.gz
drakx-c0d415f452e65be30a0bd57340179dd69b3e7a7d.tar.bz2
drakx-c0d415f452e65be30a0bd57340179dd69b3e7a7d.tar.xz
drakx-c0d415f452e65be30a0bd57340179dd69b3e7a7d.zip
pablo say that redefining LC_* is useless if LC_ALL is defined as the
later overrides and take priority over the former
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index fe097f114..3b7b3b8af 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -285,7 +285,7 @@ sub get_intf_ip {
my ($interface) = @_;
my ($ip, $state, $mask);
if (-x "/sbin/ifconfig") {
- local $_ = `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig $interface`;
+ local $_ = `LC_ALL=C /sbin/ifconfig $interface`;
$ip = /inet addr:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No Ip");
$mask = /Mask:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("No Mask");
$state = /inet/ ? "up" : "down";
@@ -329,7 +329,7 @@ sub apply() {
$button_apply->set_sensitive(0);
}
-sub ethisup { `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig $_[0]` =~ /inet/ }
+sub ethisup { `LC_ALL=C /sbin/ifconfig $_[0]` =~ /inet/ }
sub update_intbutt() {
$int_state->set($isconnected ? N("Connected") : N("Not connected"));