summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-30 18:02:30 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-30 18:02:30 +0000
commit0257f899b101faf1a859a4220e9c638d6e21b6f1 (patch)
treeeaeca5211e27562e19ed6fda11261fc1e03ecb3f /bin
parent5d181e988f052ecc49627eae13e6fac0a8d204cb (diff)
downloaddrakx-net-0257f899b101faf1a859a4220e9c638d6e21b6f1.tar
drakx-net-0257f899b101faf1a859a4220e9c638d6e21b6f1.tar.gz
drakx-net-0257f899b101faf1a859a4220e9c638d6e21b6f1.tar.bz2
drakx-net-0257f899b101faf1a859a4220e9c638d6e21b6f1.tar.xz
drakx-net-0257f899b101faf1a859a4220e9c638d6e21b6f1.zip
read global settings from /etc/sysconfig/net_applet
Diffstat (limited to 'bin')
-rwxr-xr-xbin/net_applet3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 2301528..73175e3 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -24,6 +24,7 @@ use Gtk2::Notify -init, 'notify';
use ugtk2 qw(:create :helpers :wrappers :dialogs);
my $onstartupfile = "$ENV{HOME}/.net_applet";
+my $system_file = '/etc/sysconfig/net_applet';
shouldStart() or die "$onstartupfile should be set to TRUE or use net_applet --force\n";
#- Allow multiple instances, but only one per user:
@@ -49,6 +50,8 @@ my %pixbufs =
);
my %wireless_networks;
+my %global_settings = getVarsFromSh($system_file);
+
sub get_state_message {
my ($o_interface) = @_;
my $interface = $o_interface || $current_interface;