diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-16 20:13:08 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-16 20:13:08 +0200 |
commit | cb3c31c3eb625ca121c66fc5d0ac2e26e9ffb3a9 (patch) | |
tree | 075f623c849527313c60b637bb34c5d1a35fc8b3 /setup-devd.in | |
parent | d470db05b6b4f3b52299d3643b5f5a0a5bbc752f (diff) | |
download | alpine-conf-cb3c31c3eb625ca121c66fc5d0ac2e26e9ffb3a9.zip |
setup-devd: use long opts for rc-service
it makes the script more readable
Diffstat (limited to 'setup-devd.in')
-rw-r--r-- | setup-devd.in | 12 |
1 files changed, 6 insertions, 6 deletions
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 || : |