sv-netmount: redirect stdout when checking $NETWORK_MANAGER status

This commit is contained in:
Emanuel Birge 2020-07-31 09:04:21 +02:00 committed by Érico Nogueira Rolim
parent f5056be1bd
commit a507a81506
2 changed files with 6 additions and 6 deletions

View file

@ -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" > /dev/null 2>&1 || exit 1
# If it's running or not in used - rc.local - discover default gateway
if [ -z "$GATEWAY" ]; then

View file

@ -1,12 +1,12 @@
# Template file for 'sv-netmount'
pkgname=sv-netmount
version=0.1
revision=2
short_desc="Service to mount/umount network filesystems from fstab"
homepage="http://www.voidlinux.org/"
maintainer="Olivier Mauras <olivier@mauras.ch>"
license="GPL-2"
revision=3
build_style="meta"
short_desc="Service to mount/umount network filesystems from fstab"
maintainer="Olivier Mauras <olivier@mauras.ch>"
license="GPL-2.0-or-later"
homepage="http://www.voidlinux.org/"
depends="runit"