Github messages for voidlinux
 help / color / mirror / Atom feed
From: manneorama <manneorama@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] sv-netmount: redirect stdout when checking $NETWORK_MANAGER status
Date: Fri, 31 Jul 2020 09:49:55 +0200	[thread overview]
Message-ID: <20200731074955.fGvUr_DpO45nRaKx_XoPktkCaPGLxgKVQrvqDDBuhzI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23969@inbox.vuxu.org>

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

There is an updated pull request by manneorama against master on the void-packages repository

https://github.com/manneorama/void-packages master
https://github.com/void-linux/void-packages/pull/23969

sv-netmount: redirect stdout when checking $NETWORK_MANAGER status
This a quick and dirty solution to #23968 that just redirects stdout when checking the status of $NETWORK_MANAGER.

A patch file from https://github.com/void-linux/void-packages/pull/23969.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-23969.patch --]
[-- Type: text/x-diff, Size: 1559 bytes --]

From de95bf61e37ae367096ba18a74cab20417ccad38 Mon Sep 17 00:00:00 2001
From: Emanuel Birge <emanuel.birge@tobii.com>
Date: Fri, 31 Jul 2020 09:04:21 +0200
Subject: [PATCH] sv-netmount: redirect stdout when checking $NETWORK_MANAGER
 status

---
 srcpkgs/sv-netmount/files/netmount/run | 2 +-
 srcpkgs/sv-netmount/template           | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/sv-netmount/files/netmount/run b/srcpkgs/sv-netmount/files/netmount/run
index 6214befa9c8..f00da44b28e 100755
--- a/srcpkgs/sv-netmount/files/netmount/run
+++ b/srcpkgs/sv-netmount/files/netmount/run
@@ -3,7 +3,7 @@
 [ -r conf ] && . ./conf
 
 # Ensure the network manager is running
-[ -z "$NETWORK_MANAGER" ] || sv check "$NETWORK_MANAGER" 2> /dev/null || exit 1
+[ -z "$NETWORK_MANAGER" ] || sv check "$NETWORK_MANAGER" 2>&1 /dev/null || exit 1
 
 # If it's running or not in used - rc.local - discover default gateway
 if [ -z "$GATEWAY" ]; then
diff --git a/srcpkgs/sv-netmount/template b/srcpkgs/sv-netmount/template
index 3ee020cf237..126157fe70d 100644
--- a/srcpkgs/sv-netmount/template
+++ b/srcpkgs/sv-netmount/template
@@ -1,12 +1,12 @@
 # Template file for 'sv-netmount'
 pkgname=sv-netmount
 version=0.1
-revision=2
+revision=3
+build_style="meta"
 short_desc="Service to mount/umount network filesystems from fstab"
-homepage="http://www.voidlinux.org/"
 maintainer="Olivier Mauras <olivier@mauras.ch>"
-license="GPL-2"
-build_style="meta"
+license="GPL-2.0-or-later"
+homepage="http://www.voidlinux.org/"
 
 depends="runit"
 

  parent reply	other threads:[~2020-07-31  7:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  7:25 [PR PATCH] " manneorama
2020-07-31  7:41 ` [PR PATCH] [Updated] " manneorama
2020-07-31  7:49 ` manneorama [this message]
2020-07-31  8:01 ` manneorama
2020-09-29  2:50 ` [PR PATCH] [Merged]: " ericonr

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=20200731074955.fGvUr_DpO45nRaKx_XoPktkCaPGLxgKVQrvqDDBuhzI@z \
    --to=manneorama@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).