blob: 13752093f1dea6471d16fb86034d270dc9f3eb1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# vim: set ts=4 sw=4 et:
. /etc/runit/functions
[ -r /etc/rc.conf ] && . /etc/rc.conf
[ -n "$VIRTUALIZATION" ] && return 0
if [ -x /usr/lib/systemd/systemd-udevd ]; then
_udevd=/usr/lib/systemd/systemd-udevd
elif [ -x /usr/sbin/udevd ]; then
_udevd=/usr/sbin/udevd
else
msg_warn "cannot find udevd!\n"
fi
if [ -n "${_udevd}" ]; then
msg "Starting udev and waiting for devices to settle...\n"
${_udevd} --daemon
udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle
fi
|