stop udev via udevadm
This commit is contained in:
parent
1a827fa8f7
commit
a33a2c1714
@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_eudev()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_eudev()"; sh; }
|
||||||
|
|
||||||
udevd -N never & eudev_pid="$!"
|
udevd -dN never
|
||||||
udevadm trigger -c add -t subsystems
|
udevadm trigger -c add -t subsystems
|
||||||
udevadm trigger -c add -t devices
|
udevadm trigger -c add -t devices
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
#
|
#
|
||||||
# stop_eudev()
|
# stop_eudev()
|
||||||
{
|
{
|
||||||
kill "$eudev_pid"
|
udevadm control -e
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
[ "$break" = devmgr ] && { print "break before run_systemd_udevd()"; sh; }
|
[ "$break" = devmgr ] && { print "break before run_systemd_udevd()"; sh; }
|
||||||
|
|
||||||
/lib/systemd/systemd-udevd -N never & systemd_udevd_pid="$!"
|
/lib/systemd/systemd-udevd -dN never
|
||||||
udevadm trigger -c add -t subsystems
|
udevadm trigger -c add -t subsystems
|
||||||
udevadm trigger -c add -t devices
|
udevadm trigger -c add -t devices
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
#
|
#
|
||||||
# stop_systemd_udevd()
|
# stop_systemd_udevd()
|
||||||
{
|
{
|
||||||
kill "$systemd_udevd_pid"
|
udevadm control -e
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user