mdevd

From Alpine Linux
Revision as of 23:21, 10 November 2023 by Sertonix (talk | contribs) (only need to stop previous device manager)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

mdevd is a device manager that is compatible with mdev. For configuration and other things please look at the mdev article.

Installation

The easy way to setup mdevd is throught the setup script. For custom installation see the manually section. Note that a manual installation is only recommended for advanced users.

Setup Script

The alpine-conf package privides setup-devd to easily install and setup device managers.

Install alpine-conf if it is not already installed.

# apk add alpine-conf

Setup mdevd.

# setup-devd mdevd

Manually

You first need to install the mdevd package.

# apk add mdevd


If you already have a device manager installed you need to stop it before you start mdevd.


Then enable the services.

# rc-update add mdevd sysinit # rc-update add mdevd-init sysinit # rc-update add hwdrivers sysinit

If you are not running in a chroot you will also want to start mdevd.

# rc-service mdevd start # rc-service hwdrivers start

If /dev hasn't been initialized by another device manager you need to do that manually.

# rc-service mdevd-init start

Remove

Warning: Disabling mdevd without setting up a different device manager may cause unexpected issues. If you install a different device manager with the setup script this step is not needed.


To remove mdevd you need to stop it first. This step can be skipped if you are running in a chroot.

# rc-service hwdrivers stop # rc-service mdevd stop

Then disable the services.

# rc-update delete hwdrivers sysinit # rc-update delete mdevd-init sysinit # rc-update delete mdevd default


You might also want to uninstall the mdevd package since they are not used anymore.

# apk del mdevd

See also