public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] BUG 11487:solve problem with unexspected shutdown
Date: Wed, 05 Jun 2019 09:12:22 +0100	[thread overview]
Message-ID: <B035E9EA-F048-4FF7-8A02-3C4518882B76@ipfire.org> (raw)
In-Reply-To: <20190604194922.6042-1-sfeddersen@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 2400 bytes --]

Hi,

Good patch. Merged!

-Michael

> On 4 Jun 2019, at 20:49, sfeddersen <sfeddersen(a)ipfire.org> wrote:
> 
> Solve problem with unexspected shutdown problem when checking a single client.
> ---
> lfs/wio             |  2 +-
> src/wio/main/wio.pl | 11 +++++------
> 2 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/lfs/wio b/lfs/wio
> index 7098dd9cf..92186efad 100644
> --- a/lfs/wio
> +++ b/lfs/wio
> @@ -15,7 +15,7 @@ THISAPP    = wio-$(VER)
> DIR_APP    = $(DIR_SRC)/$(THISAPP)
> TARGET     = $(DIR_INFO)/$(THISAPP)
> PROG       = wio
> -PAK_VER    = 3
> +PAK_VER    = 4
> 
> ###############################################################################
> # Top-level Rules
> diff --git a/src/wio/main/wio.pl b/src/wio/main/wio.pl
> index b846feafa..8e2fb8879 100644
> --- a/src/wio/main/wio.pl
> +++ b/src/wio/main/wio.pl
> @@ -21,7 +21,7 @@
> #                                                                             #
> ###############################################################################
> #
> -# Version: 2017/08/04 18:55:23
> +# Version: 2019/06/04 21:12:23

I suppose you just want to keep this :)

> #
> # This wio.pl is based on the Code from the IPCop WIO Addon
> # and is extremly adapted to work with IPFire.
> @@ -86,9 +86,9 @@ my $redip      = $hostname;
> my $vpnpid     = ( -e "/var/run/charon.pid" ? `awk '{print $1}' /var/run/charon.pid`: '');
> my $ovpnpid    = ( -e  "/var/run/openvpn.pid" ? `awk '{print $1}' /var/run/openvpn.pid`: '');
> 
> -my $steptime = $wiosettings{'CRON'} *= 60;
> -my $i_ping   = 'icmp';
> -my $t_ping   = 'tcp';
> +my $steptime   = $wiosettings{'CRON'} *= 60;
> +my $i_ping     = 'icmp';
> +my $t_ping     = 'tcp';
> 
> my $nr = 1;
> my $poweroff = 0;
> @@ -101,7 +101,6 @@ my ( $ping_i, $ping_t, $ping_ib, $ping_tb, $ping_iv, $ping_tv, $pingmode ) = '';
> my ( @tmp, @arptmp, @myarray, @status, @arpclients ) = '';
> my @ifaces = ('GREEN','BLUE','ORANGE');
> 
> -
> if ( $mailsettings{'USEMAIL'} eq 'on' ) { $mailen = 'on'; }
> else { $mailen = 'off'; }
> 
> @@ -299,7 +298,7 @@ if ($debug) {
> 
> if ( $smailtxt ne '' ) { &WIO::mailsender($Lang::tr{'wio_sub'}, $smailtxt); }
> 
> -if ($shutdown eq 'on') {
> +if ($shutdown eq 'on' && ! -e $onoffip) {
> 	foreach (@status) {
> 		chomp;
> 		@tmp = split( /\,/, $_ );
> -- 
> 2.17.1
> 


      reply	other threads:[~2019-06-05  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04 19:49 sfeddersen
2019-06-05  8:12 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B035E9EA-F048-4FF7-8A02-3C4518882B76@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox