summaryrefslogtreecommitdiff
path: root/setup-devd.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-08-09 10:27:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-08-09 10:27:12 +0200
commit441fdef79335650e772d9e74cf3d662106d6fb7e (patch)
treed8719ee7b9d2871b44ad290d424a31cf9b0a43b7 /setup-devd.in
parentd5e4a18cb686a387ddb683102b89697eaaad809b (diff)
downloadalpine-conf-441fdef79335650e772d9e74cf3d662106d6fb7e.zip
setup-devd: disable/stop hwdrivers together with mdev
we should stop and disable hwdrivers when we stop and disable mdev ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/14046
Diffstat (limited to 'setup-devd.in')
-rw-r--r--setup-devd.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup-devd.in b/setup-devd.in
index 7225463..da42a49 100644
--- a/setup-devd.in
+++ b/setup-devd.in
@@ -29,7 +29,9 @@ EOF
disable_mdev () {
if rc-service --exists mdev ; then
+ rc-service --ifstarted --quiet hwdrivers stop
rc-service --ifstarted --quiet mdev stop
+ rc-update delete --quiet hwdriver sysinit || :
rc-update delete --quiet mdev sysinit || :
fi
}
@@ -38,7 +40,9 @@ enable_mdev () {
# mdev openrc script is provided by busybox-initscripts which is assumed
# to be there
rc-update add --quiet mdev sysinit
+ rc-update add --quiet hwdrivers sysinit
rc-service mdev --ifstopped start
+ rc-service hwdrivers --ifstopped start
}
disable_mdevd () {