diff options
-rw-r--r-- | setup-devd.in | 4 | ||||
-rwxr-xr-x | tests/setup_devd_test | 9 |
2 files changed, 13 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 () { diff --git a/tests/setup_devd_test b/tests/setup_devd_test index 3e006ee..923c295 100755 --- a/tests/setup_devd_test +++ b/tests/setup_devd_test @@ -16,6 +16,7 @@ init_mdev() { mkdir -p etc/init.d touch etc/init.d/mdev rc-service mdev start + rc-service hwdrivers start } setup_devd_mdev_body() { @@ -44,6 +45,10 @@ setup_devd_mdevd_body() { atf_check -s exit:3 \ -o match:"stopped" \ rc-service mdev status + + atf_check -s exit:3 \ + -o match:"stopped" \ + rc-service hwdrivers status } setup_devd_udev_body() { @@ -65,4 +70,8 @@ setup_devd_udev_body() { atf_check -s exit:3 \ -o match:"stopped" \ rc-service mdev status + + atf_check -s exit:3 \ + -o match:"stopped" \ + rc-service hwdrivers status } |