From b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 24 Mar 2005 12:29:18 +0000 Subject: reload configuration on SIGHUP --- perl-install/standalone/net_applet | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/net_applet') 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() } }, -- cgit v1.2.1