fiss-linux

Some linux scripts for fiss
Log | Files | Refs | LICENSE

02-udev.sh (493B)


      1 # vim: set ts=4 sw=4 et:
      2 
      3 [ -n "$VIRTUALIZATION" ] && return 0
      4 
      5 if [ -x /usr/lib/systemd/systemd-udevd ]; then
      6     _udevd=/usr/lib/systemd/systemd-udevd
      7 elif [ -x /sbin/udevd -o -x /bin/udevd ]; then
      8     _udevd=udevd
      9 else
     10     msg_warn "cannot find udevd!"
     11 fi
     12 
     13 if [ -n "${_udevd}" ]; then
     14     msg "Starting udev and waiting for devices to settle..."
     15     ${_udevd} --daemon
     16     udevadm trigger --action=add --type=subsystems
     17     udevadm trigger --action=add --type=devices
     18     udevadm settle
     19 fi