OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../udev/udev.conf
  5. # Copyright (C) 2007 - 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. if [ "$prefix_auto" = 1 ] ; then
  15. prefix=
  16. set_confopt
  17. fi
  18. udev_devices() {
  19. local devdir="$root/lib/udev/devices"
  20. local node=
  21. echo "Creating base nodes ..."
  22. mkdir -p "$devdir"
  23. $confdir/create_nodes.sh $devdir < $confdir/udev_device_nodes.txt | while read node; do
  24. add_flist "$node"
  25. done
  26. }
  27. udev_rules() {
  28. local rulesd=$root$libdir/udev/rules.d
  29. echo "Installing our .rules files..."
  30. for x in $confdir/rules/*.rules; do
  31. [ ! -e "rules/rules.d/${x##*/}" ] || echo_warning "${x##*/}: conflict detected."
  32. install -v -m 644 $x $rulesd/
  33. done
  34. }
  35. hook_add postmake 5 'udev_devices'
  36. hook_add postmake 6 'udev_rules'