diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-03-24 12:29:18 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-03-24 12:29:18 +0000 |
commit | b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27 (patch) | |
tree | eeee1bea4879407cf0ca3fb735110b29492fe511 /perl-install | |
parent | 29b31b8ff6190382a8eb57274daafbe46796ff69 (diff) | |
download | drakx-b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27.tar drakx-b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27.tar.gz drakx-b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27.tar.bz2 drakx-b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27.tar.xz drakx-b9dc75b59e7bfff2d5ec6f655ec8b2b25520bc27.zip |
reload configuration on SIGHUP
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/standalone/net_applet | 7 |
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() } }, |