From cb3c31c3eb625ca121c66fc5d0ac2e26e9ffb3a9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 16 May 2022 20:13:08 +0200 Subject: setup-devd: use long opts for rc-service it makes the script more readable --- setup-devd.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'setup-devd.in') diff --git a/setup-devd.in b/setup-devd.in index 08a564a..d6520fd 100644 --- a/setup-devd.in +++ b/setup-devd.in @@ -28,8 +28,8 @@ EOF } disable_mdev () { - if rc-service -e mdev ; then - rc-service -s mdev stop + if rc-service --exists mdev ; then + rc-service --ifstarted mdev stop rc-update delete mdev sysinit || : fi } @@ -42,8 +42,8 @@ enable_mdev () { } disable_mdevd () { - if rc-service -e mdevd ; then - rc-service -s mdevd stop + 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 || : fi @@ -60,8 +60,8 @@ enable_mdevd () { } disable_udev () { - if rc-service -e udev ; then - rc-service -s udev stop + 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 || : -- cgit v1.2.3