summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-08-18 07:54:50 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-08-18 07:54:50 +0000
commit61379b079d85737f21fcdbae19daa649044fe658 (patch)
treeaceb69d82ff71f26b638f6830a47c1ad40b795b8 /perl-install
parent8a7b44844b82c613bc8ca70d2cae3a9a98dd2bb6 (diff)
downloaddrakx-61379b079d85737f21fcdbae19daa649044fe658.tar
drakx-61379b079d85737f21fcdbae19daa649044fe658.tar.gz
drakx-61379b079d85737f21fcdbae19daa649044fe658.tar.bz2
drakx-61379b079d85737f21fcdbae19daa649044fe658.tar.xz
drakx-61379b079d85737f21fcdbae19daa649044fe658.zip
better message when no ip (aka interface down or broken)
Diffstat (limited to 'perl-install')
-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 599cf168c..0f234a875 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -286,8 +286,8 @@ sub get_int_ip {
my ($ip, $state, $mask);
if (-x "/sbin/ifconfig") {
local $_ = `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig $interface`;
- $ip = /inet addr:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("Bad Ip");
- $mask = /Mask:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mso ? $1 : N("Bad Mask");
+ $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");
$_ = `LC_ALL=C LANG=C LANGUAGE=C LC_MESSAGES=C /sbin/ifconfig`;
$state = /$interface/ ? "up" : "down";
} else {