mdev -s is to be run during boot to scan /sys and populate /dev. mdev -d[f]: daemon, listen on netlink.
-f: stay in foreground.
It uses /etc/mdev.conf with lines
where DEVNAME is device name regex, @major,minor[-minor2], or environment variable regex. A common use of the latter is to load modules for hotplugged devices:
If /dev/mdev.seq file exists, mdev will wait for its value to match $SEQNUM variable. This prevents plug/unplug races. To activate this feature, create empty /dev/mdev.seq at boot.
If /dev/mdev.log file exists, debug log will be appended to it.
|April 2020||Fidelix 1.0|