mirror of the now-defunct rocklinux.org
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.

58 lines
1.3 KiB

  1. BINLIST="
  2. sbin/udevd
  3. sbin/udevcontrol
  4. sbin/udevsettle
  5. sbin/udevtrigger
  6. usr/bin/udevinfo
  7. usr/bin/udevtest
  8. "
  9. for x in $BINLIST
  10. do
  11. add_with_deps $rootdir/$x /$x
  12. done
  13. cat <<EOF
  14. dir /etc/udev 0755 0 0
  15. dir /etc/udev/rules.d 0755 0 0
  16. file /etc/udev/udev.conf $rootdir/etc/udev/udev.conf 644 0 0
  17. dir /lib/udev 0755 0 0
  18. dir /lib/udev/devices 0755 0 0
  19. dir /lib/udev/devices/bus 0755 0 0
  20. dir /lib/udev/devices/bus/usb 0755 0 0
  21. dir /lib/udev/devices/pts 0755 0 0
  22. dir /lib/udev/devices/shm 0755 0 0
  23. nod /lib/udev/devices/console 0600 0 0 c 5 1
  24. nod /lib/udev/devices/null 0666 0 0 c 1 3
  25. pipe /lib/udev/devices/initctl 600 0 0
  26. slink /lib/udev/devices/fd /proc/self/fd 755 0 0
  27. slink /lib/udev/devices/core /proc/kcore 755 0 0
  28. slink /lib/udev/devices/stdin /proc/self/fd/0 755 0 0
  29. slink /lib/udev/devices/stdout /proc/self/fd/1 755 0 0
  30. slink /lib/udev/devices/stderr /proc/self/fd/2 755 0 0
  31. # supress udev uid/gid warnings
  32. file /etc/passwd $rootdir/etc/passwd 644 0 0
  33. file /etc/group $rootdir/etc/group 644 0 0
  34. EOF
  35. (
  36. cd $rootdir
  37. # supress udev uid/gid warnings
  38. find lib -maxdepth 1 -name "libnss_files.so.*" | while read x
  39. do
  40. echo "file $x $rootdir/$x 644 0 0"
  41. done
  42. find etc/udev/rules.d -maxdepth 1 -type f | while read x
  43. do
  44. echo "file $x $rootdir/$x 644 0 0"
  45. done
  46. find lib/udev -maxdepth 1 -type f | while read x
  47. do
  48. add_with_deps $rootdir/$x /$x
  49. done
  50. )