Mdevd: Difference between revisions
m (fix typo) |
(only need to stop previous device manager) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:mdevd}} | ||
[https://skarnet.org/software/mdevd/ mdevd] is a [[Device_Manager|device manager]] that is compatible with [[mdev]]. | |||
For configuration and other things please look at the [[mdev|mdev article]]. | For configuration and other things please look at the [[mdev|mdev article]]. | ||
== Installation == | == Installation == | ||
The easy way to setup mdevd is throught the [[#Setup_Script|setup script]]. For custom installation see the [[#Manually|manually section]]. Note that | The easy way to setup mdevd is throught the [[#Setup_Script|setup script]]. For custom installation see the [[#Manually|manually section]]. Note that a manual installation is only recommended for advanced users. | ||
=== Setup Script === | === Setup Script === | ||
Line 12: | Line 11: | ||
The {{pkg|alpine-conf}} package privides [https://git.alpinelinux.org/alpine-conf/tree/setup-devd.in setup-devd] to easily install and setup device managers. | The {{pkg|alpine-conf}} package privides [https://git.alpinelinux.org/alpine-conf/tree/setup-devd.in setup-devd] to easily install and setup device managers. | ||
Install {{pkg|alpine-conf}} if not already. | Install {{pkg|alpine-conf}} if it is not already installed. | ||
{{cmd|# apk add {{pkg|alpine-conf}}}} | {{cmd|# apk add {{pkg|alpine-conf}}}} | ||
Setup mdevd. | Setup mdevd. | ||
Line 20: | Line 19: | ||
You first need to install the mdevd package. | You first need to install the mdevd package. | ||
{{cmd|# apk add mdevd}} | {{cmd|# apk add {{pkg|mdevd}}}} | ||
If you already have a device manager installed you need to | If you already have a device manager installed you need to stop it before you start mdevd. | ||
Line 42: | Line 41: | ||
== Remove == | == Remove == | ||
{{warning|Disabling mdevd without setting up a different device manager may cause | {{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. | To remove mdevd you need to stop it first. This step can be skipped if you are running in a chroot. | ||
Line 57: | Line 56: | ||
You might also want to uninstall the mdevd package since they are not used anymore. | You might also want to uninstall the mdevd package since they are not used anymore. | ||
{{cmd|# apk del mdevd}} | {{cmd|# apk del {{pkg|mdevd}}}} | ||
== See also == | == See also == | ||
* [[mdev]] | * [[mdev]] | ||
* [ | * [[:Category:Device_Manager|Device Managers]] | ||
[[Category:Device_Manager]] |
Latest revision as of 23:21, 10 November 2023
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

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