summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r--perl-install/standalone/net_applet7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 68229c8e7..fafb8441c 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -30,9 +30,13 @@ my $current_md5 = md5file($prog_name);
my $netcnx = {};
my $netc = {};
my $intf = {};
-network::netconnect::read_net_conf($netcnx, $netc, $intf);
my $watched_interface;
+$SIG{HUP} = sub {
+ print "received SIGHUP, reloading network configuration\n";
+ checkNetworkForce();
+};
+
my %appletstate = (
connected => {
colour => [ 'connected' ],
@@ -81,7 +85,6 @@ my %actions = (
launch => sub {
$netcnx->{PROFILE} = $_[0];
network::tools::bg_command_as_root('/sbin/set-netprofile', $netcnx->{PROFILE});
- checkNetworkForce();
}
},
'refresh' => { name => N("Refresh"), launch => sub { checkNetwork() } },