1
0
mirror of https://github.com/rancher/os.git synced 2025-06-29 08:16:49 +00:00
os/images/02-udev/udev.sh
2016-05-06 10:58:54 -07:00

19 lines
354 B
Bash
Executable File

#!/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