summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-27 20:30:25 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-27 20:30:25 +0000
commitadd69ce8e2648169a47364a705927c69299263cf (patch)
treec76ffa47102f1c7a6e4f3b7ff43edaf887128cf4 /bin
parentef4291ae95decf1393b13613cfafb60aa39635ba (diff)
downloaddrakx-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')
-rwxr-xr-xbin/net_applet3
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))