#!/bin/sh # udev-trigger - coldplug devices after udevd is running # Update hwdb if stale if [ -f /etc/udev/hwdb.bin ] && [ /etc/udev/hwdb.bin -ot /usr/lib/udev/hwdb.d ]; then systemd-hwdb update fi # Trigger device events udevadm trigger --type=subsystems --action=add udevadm trigger --type=devices --action=add # Wait for the event queue to finish udevadm settle