summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-11 18:43:21 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-11 18:43:21 +0000
commitc71714bb30f4f99e451e6f454cbb118e87913e6e (patch)
treefae5d63a4d8b58ad4a9590d2b26f1bc47b2274aa /lib/network/connection/ethernet.pm
parent818b3c27865f515b0024e5a08c7d034077fdab2e (diff)
downloaddrakx-net-c71714bb30f4f99e451e6f454cbb118e87913e6e.tar
drakx-net-c71714bb30f4f99e451e6f454cbb118e87913e6e.tar.gz
drakx-net-c71714bb30f4f99e451e6f454cbb118e87913e6e.tar.bz2
drakx-net-c71714bb30f4f99e451e6f454cbb118e87913e6e.tar.xz
drakx-net-c71714bb30f4f99e451e6f454cbb118e87913e6e.zip
More informative message when trying to configure an address which is
already in use (#16595).
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 4c5aded..941271d 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -182,7 +182,7 @@ sub check_address_settings {
}
#- test if IP address is already used
if (find { text2bool($_->{ONBOOT}) && $_->{DEVICE} ne $self->get_interface && $_->{IPADDR} eq $self->{address}{ip_address} } values %{$net->{ifcfg}}) {
- $self->{address}{error}{message} = N("%s already in use\n", $self->{address}{ip_address});
+ $self->{address}{error}{message} = N("%s is already used by connection that starts on boot. To use this address with this connection, first disable all other devices which use it, or configure them not to start on boot", $self->{address}{ip_address});
$self->{address}{error}{field} = \$self->{address}{ip_address};
return 0;
}