02-udev.sh (493B) download
1# vim: set ts=4 sw=4 et:
2
3[ -n "$VIRTUALIZATION" ] && return 0
4
5if [ -x /usr/lib/systemd/systemd-udevd ]; then
6 _udevd=/usr/lib/systemd/systemd-udevd
7elif [ -x /sbin/udevd -o -x /bin/udevd ]; then
8 _udevd=udevd
9else
10 msg_warn "cannot find udevd!"
11fi
12
13if [ -n "${_udevd}" ]; then
14 msg "Starting udev and waiting for devices to settle..."
15 ${_udevd} --daemon
16 udevadm trigger --action=add --type=subsystems
17 udevadm trigger --action=add --type=devices
18 udevadm settle
19fi