From 4dbdf28413f4ce7dbe7c1c994fe619600a4914a6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 16 May 2022 20:37:29 +0200 Subject: setup-devd: silence warnings add --quiet option to silence warnings --- setup-devd.in | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'setup-devd.in') diff --git a/setup-devd.in b/setup-devd.in index d6520fd..218ed8c 100644 --- a/setup-devd.in +++ b/setup-devd.in @@ -29,31 +29,31 @@ EOF disable_mdev () { if rc-service --exists mdev ; then - rc-service --ifstarted mdev stop - rc-update delete mdev sysinit || : + rc-service --ifstarted --quiet mdev stop + rc-update delete --quiet mdev sysinit || : fi } enable_mdev () { # mdev openrc script is provided by busybox-initscripts which is assumed # to be there - rc-update add mdev sysinit - rc-service mdev start + rc-update add --quiet mdev sysinit + rc-service mdev --ifstopped start } disable_mdevd () { if rc-service --exists mdevd ; then - rc-service --ifstarted mdevd stop - rc-update delete mdevd-init sysinit 2>/dev/null || : - rc-update delete mdevd sysinit 2>/dev/null || : + rc-service --ifstarted --quiet mdevd stop + rc-update delete --quiet mdevd-init sysinit 2>/dev/null || : + rc-update delete --quiet mdevd sysinit 2>/dev/null || : fi } enable_mdevd () { apk add --quiet mdevd mdevd-openrc - rc-update add mdevd sysinit - rc-update add mdevd-init sysinit - rc-service mdevd start + rc-update add --quiet mdevd sysinit + rc-update add --quiet mdevd-init sysinit + rc-service --ifstopped mdevd start if "$1" ; then rc-service mdevd-init start fi @@ -61,24 +61,25 @@ enable_mdevd () { disable_udev () { if rc-service --exists udev ; then - rc-service --ifstarted udev stop - rc-update delete udev-postmount default 2>/dev/null || : - rc-update delete udev-settle sysinit 2>/dev/null || : - rc-update delete udev-trigger sysinit 2>/dev/null || : - rc-update delete udev sysinit 2>/dev/null || : + rc-service --ifstopped --quiet udev-postmount stop + rc-service --ifstarted --quiet udev stop + rc-update delete --quiet udev-postmount default 2>/dev/null || : + rc-update delete --quiet udev-settle sysinit 2>/dev/null || : + rc-update delete --quiet udev-trigger sysinit 2>/dev/null || : + rc-update delete --quiet udev sysinit 2>/dev/null || : fi } enable_udev () { apk add --quiet eudev udev-init-scripts udev-init-scripts-openrc - rc-update add udev sysinit - rc-update add udev-trigger sysinit - rc-update add udev-settle sysinit - rc-update add udev-postmount default - rc-service udev start - rc-service udev-trigger start - rc-service udev-settle start - rc-service udev-postmount start + rc-update add --quiet udev sysinit + rc-update add --quiet udev-trigger sysinit + rc-update add --quiet udev-settle sysinit + rc-update add --quiet udev-postmount default + rc-service --ifstopped udev start + rc-service --ifstopped udev-trigger start + rc-service --ifstopped udev-settle start + rc-service --ifstopped udev-postmount start } coldplug=false -- cgit v1.2.3