/
githubmirror
/
mdevctl
Обзор
Документация
Войти
/
githubmirror
/
mdevctl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.50
60-mdevctl.rules
15 строк
1017 B
Cornelia Huck
tweak some comments
26 июн 2019, 12:43
26 июн 2019, 12:43
2a101c6
Код
Авторство
О чём код?
# Add systemd tags to all mdev devices added or removed, this allows the # BindsTo= in the mdev unit template to track the device. Additionally # indicate SYSTEMD_WANTS to start this service, allowing mdev devices to # be stopped via systemctl. ACTION=="add", SUBSYSTEM=="mdev", PROGRAM="/usr/sbin/mdevctl systemd-service-name $kernel" TAG+="systemd", ENV{SYSTEMD_WANTS}="$result" ACTION=="remove", SUBSYSTEM=="mdev", TAG+="systemd" # When registered with mdev, try to start any persistent devices. Note that # this uevent is not triggered on older kernels. ACTION=="change", ENV{MDEV_STATE}=="registered", TEST=="/etc/mdevctl.d/$kernel", RUN+="/bin/sh -c '/usr/sbin/mdevctl start-parent-mdevs %k'" # For compatibility with kernels where mdev doesn't trigger the change uevent # on parent device registration, try to start mdevs when the device is added; # if the device is setup early this may still work. ACTION=="add", TEST=="/etc/mdevctl.d/$kernel", RUN+="/bin/sh -c '/usr/sbin/mdevctl start-parent-mdevs %k'"