Don't like ads? PRO users don't see any ads ;-)
Guest

lib32-systemd-tools-194-4: initcpio-install-udev

By: jtts on Oct 25th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. build() {
  4.     local rules tool
  5.  
  6.     add_file "/etc/udev/udev.conf"
  7.     add_binary /usr/lib/systemd/systemd-udevd /usr/bin/udevd
  8.     add_binary /usr/bin/udevadm
  9.  
  10.     for rules in 50-udev-default.rules 60-persistent-storage.rules 64-btrfs.rules 80-drivers.rules; do
  11.         add_file "/usr/lib/udev/rules.d/$rules"
  12.     done
  13.     for tool in ata_id scsi_id; do
  14.         add_file "/usr/lib/udev/$tool"
  15.     done
  16.  
  17.     add_runscript
  18. }
  19.  
  20. help() {
  21.     cat <<HELPEOF
  22. This hook will use udev to create your root device node and detect the needed
  23. modules for your root device. It is also required for firmware loading in
  24. initramfs. It is recommended to use this hook.
  25. HELPEOF
  26. }
  27.  
  28. # vim: set ft=sh ts=4 sw=4 et: