udev.sh 354 B

12345678910111213141516171819
  1. #!/bin/bash
  2. if [ "$DAEMON" = true ]; then
  3. exec udevd
  4. fi
  5. udevd --daemon
  6. udevadm trigger --action=add
  7. udevadm settle
  8. if [ "$BOOTSTRAP" = true ]; then
  9. # This was needed to get USB devices to fully register
  10. # There is probably a better way to do this
  11. killall udevd
  12. udevd --daemon
  13. udevadm trigger --action=add
  14. udevadm settle
  15. fi