diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-27 20:30:25 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-27 20:30:25 +0000 |
commit | add69ce8e2648169a47364a705927c69299263cf (patch) | |
tree | c76ffa47102f1c7a6e4f3b7ff43edaf887128cf4 /bin/net_applet | |
parent | ef4291ae95decf1393b13613cfafb60aa39635ba (diff) | |
download | drakx-net-add69ce8e2648169a47364a705927c69299263cf.tar drakx-net-add69ce8e2648169a47364a705927c69299263cf.tar.gz drakx-net-add69ce8e2648169a47364a705927c69299263cf.tar.bz2 drakx-net-add69ce8e2648169a47364a705927c69299263cf.tar.xz drakx-net-add69ce8e2648169a47364a705927c69299263cf.zip |
Added support for DNS server in tooltip.
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-x | bin/net_applet | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet index b2c3f7d..03aa809 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -1,6 +1,6 @@ #!/usr/bin/perl -use strict; + use lib qw(/usr/lib/libDrakX); # i18n: IMPORTANT: to get correct namespace (drakx-net instead of libDrakX) BEGIN { unshift @::textdomains, 'drakx-net' } @@ -94,6 +94,7 @@ sub get_state_message { N("Network is up on interface %s.", get_interface_name($interface)) . "\n\n" . N("IP address: %s", network::tools::get_interface_ip_address($net, $interface)) . "\n\n" . N("Gateway: %s", [ network::tools::get_interface_status($interface) ]->[1]) . + "\n\n" . N("DNS: %s", $net->{resolv}{dnsServer}) . ($network && "\n\n" . N("Connected to %s (link level: %d %%)", $network->{name}, $network->{signal_strength})) : $current_state eq 'disconnected' ? N("Network is down on interface %s.", get_interface_name($interface)) |