1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 08:14:21 +00:00
Files
os/images/02-udev/udev.sh

19 lines
354 B
Bash
Raw Normal View History

2016-05-06 10:12:09 -07:00
#!/bin/bash
if [ "$DAEMON" = true ]; then
exec udevd
fi
udevd --daemon
udevadm trigger --action=add
udevadm settle
if [ "$BOOTSTRAP" = true ]; then
# This was needed to get USB devices to fully register
# There is probably a better way to do this
killall udevd
udevd --daemon
udevadm trigger --action=add
udevadm settle
fi