Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

udev-171: make it uclibc-frendly

Signed-off-by: Vladimir Smirnov <civil.over@gmail.com>
  • Loading branch information...
commit baca1cfae401db2f0c9b539784068301377f3785 1 parent ed9ee63
Vladimir Smirnov Civil authored

Showing 100 changed files with 7,904 additions and 0 deletions. Show diff stats Hide diff stats

  1. +103 0 sys-fs/udev/Manifest
  2. +45 0 sys-fs/udev/files/136/shell-compat-KV.sh
  3. +43 0 sys-fs/udev/files/136/shell-compat-addon.sh
  4. +95 0 sys-fs/udev/files/136/udev-dev-tarball.initd
  5. +107 0 sys-fs/udev/files/136/udev-mount.initd
  6. +31 0 sys-fs/udev/files/136/udev-postmount.initd
  7. +54 0 sys-fs/udev/files/136/udev-start.sh
  8. +13 0 sys-fs/udev/files/136/udev-stop.sh
  9. +56 0 sys-fs/udev/files/136/udev.confd
  10. +246 0 sys-fs/udev/files/136/udev.initd
  11. +45 0 sys-fs/udev/files/147/shell-compat-KV.sh
  12. +71 0 sys-fs/udev/files/147/shell-compat-addon.sh
  13. +95 0 sys-fs/udev/files/147/udev-dev-tarball.initd
  14. +114 0 sys-fs/udev/files/147/udev-mount.initd
  15. +35 0 sys-fs/udev/files/147/udev-postmount.initd
  16. +55 0 sys-fs/udev/files/147/udev-start.sh
  17. +13 0 sys-fs/udev/files/147/udev-stop.sh
  18. +56 0 sys-fs/udev/files/147/udev.confd
  19. +263 0 sys-fs/udev/files/147/udev.initd
  20. +45 0 sys-fs/udev/files/151-r4/shell-compat-KV.sh
  21. +71 0 sys-fs/udev/files/151-r4/shell-compat-addon.sh
  22. +95 0 sys-fs/udev/files/151-r4/udev-dev-tarball.initd
  23. +119 0 sys-fs/udev/files/151-r4/udev-mount.initd
  24. +35 0 sys-fs/udev/files/151-r4/udev-postmount.initd
  25. +55 0 sys-fs/udev/files/151-r4/udev-start.sh
  26. +13 0 sys-fs/udev/files/151-r4/udev-stop.sh
  27. +63 0 sys-fs/udev/files/151-r4/udev.confd
  28. +273 0 sys-fs/udev/files/151-r4/udev.initd
  29. +14 0 sys-fs/udev/files/156/40-gentoo.rules
  30. +8 0 sys-fs/udev/files/156/90-network.rules
  31. +45 0 sys-fs/udev/files/156/shell-compat-KV.sh
  32. +71 0 sys-fs/udev/files/156/shell-compat-addon.sh
  33. +95 0 sys-fs/udev/files/156/udev-dev-tarball.initd
  34. +107 0 sys-fs/udev/files/156/udev-mount.initd
  35. +37 0 sys-fs/udev/files/156/udev-postmount.initd
  36. +55 0 sys-fs/udev/files/156/udev-start.sh
  37. +13 0 sys-fs/udev/files/156/udev-stop.sh
  38. +64 0 sys-fs/udev/files/156/udev.confd
  39. +272 0 sys-fs/udev/files/156/udev.initd
  40. +14 0 sys-fs/udev/files/161/40-gentoo.rules
  41. +8 0 sys-fs/udev/files/161/90-network.rules
  42. +45 0 sys-fs/udev/files/161/shell-compat-KV.sh
  43. +71 0 sys-fs/udev/files/161/shell-compat-addon.sh
  44. +95 0 sys-fs/udev/files/161/udev-dev-tarball.initd
  45. +107 0 sys-fs/udev/files/161/udev-mount.initd
  46. +37 0 sys-fs/udev/files/161/udev-postmount.initd
  47. +55 0 sys-fs/udev/files/161/udev-start.sh
  48. +13 0 sys-fs/udev/files/161/udev-stop.sh
  49. +64 0 sys-fs/udev/files/161/udev.confd
  50. +272 0 sys-fs/udev/files/161/udev.initd
  51. +14 0 sys-fs/udev/files/164/40-gentoo.rules
  52. +8 0 sys-fs/udev/files/164/90-network.rules
  53. +45 0 sys-fs/udev/files/164/shell-compat-KV.sh
  54. +71 0 sys-fs/udev/files/164/shell-compat-addon.sh
  55. +95 0 sys-fs/udev/files/164/udev-dev-tarball.initd
  56. +107 0 sys-fs/udev/files/164/udev-mount.initd
  57. +53 0 sys-fs/udev/files/164/udev-postmount.initd
  58. +55 0 sys-fs/udev/files/164/udev-start.sh
  59. +13 0 sys-fs/udev/files/164/udev-stop.sh
  60. +64 0 sys-fs/udev/files/164/udev.confd
  61. +272 0 sys-fs/udev/files/164/udev.initd
  62. +26 0 sys-fs/udev/files/blacklist-110
  63. +29 0 sys-fs/udev/files/blacklist-146
  64. +93 0 sys-fs/udev/files/modprobe-114.sh
  65. +102 0 sys-fs/udev/files/modprobe-115.sh
  66. +25 0 sys-fs/udev/files/move_tmp_persistent_rules-112-r1.sh
  67. +28 0 sys-fs/udev/files/net-104-r10.sh
  68. +34 0 sys-fs/udev/files/net-118-r1.sh
  69. +34 0 sys-fs/udev/files/net-130-r1.sh
  70. +17 0 sys-fs/udev/files/pnp-aliases
  71. +57 0 sys-fs/udev/files/shell-compat-118-r2.sh
  72. +75 0 sys-fs/udev/files/shell-compat-118-r3.sh
  73. +47 0 sys-fs/udev/files/shell-compat-KV.sh
  74. +148 0 sys-fs/udev/files/udev-110-root-link-1.diff
  75. +164 0 sys-fs/udev/files/udev-114-root-link-2.diff
  76. +13 0 sys-fs/udev/files/udev-122-rules-update.diff
  77. +27 0 sys-fs/udev/files/udev-124-cdrom-autoclose-bug.diff
  78. +13 0 sys-fs/udev/files/udev-124-encoding-overflow.patch
  79. +39 0 sys-fs/udev/files/udev-124-netlink-owner-check.patch
  80. +16 0 sys-fs/udev/files/udev-141-remove-devfs-names.diff
  81. +29 0 sys-fs/udev/files/udev-150-fix-missing-firmware-timeout.diff
  82. +53 0 sys-fs/udev/files/udev-151-readd-hd-rules.diff
  83. +47 0 sys-fs/udev/files/udev-164-remove-v4l1.patch
  84. +32 0 sys-fs/udev/files/udev-167-revert-disable-all-extras.patch
  85. +159 0 sys-fs/udev/files/udev-171-uclibc.patch
  86. +94 0 sys-fs/udev/files/udev-175-zlib.patch
  87. +23 0 sys-fs/udev/files/udev-postmount-initd-111-r2
  88. +247 0 sys-fs/udev/files/udev-start-113-r2.sh
  89. +234 0 sys-fs/udev/files/udev-start-114-r1.sh
  90. +203 0 sys-fs/udev/files/udev-start-118-r2.sh
  91. +239 0 sys-fs/udev/files/udev-start-122-r1.sh
  92. +80 0 sys-fs/udev/files/udev-stop-111-r2.sh
  93. +71 0 sys-fs/udev/files/udev-stop-118-r2.sh
  94. +28 0 sys-fs/udev/files/udev.conf.post_113
  95. +11 0 sys-fs/udev/files/udev.conf.post_114
  96. +8 0 sys-fs/udev/files/udev.confd
  97. +59 0 sys-fs/udev/files/udev.initd
  98. +29 0 sys-fs/udev/files/write_root_link_rule
  99. +29 0 sys-fs/udev/files/write_root_link_rule-125
  100. +574 0 sys-fs/udev/udev-171-r5.ebuild
103 sys-fs/udev/Manifest
... ... @@ -0,0 +1,103 @@
  1 +AUX 136/shell-compat-KV.sh 1012 RMD160 5bc85047b4237d502f7b0ccc7181f9974c2b0898 SHA1 bbc58d6181f3fc8d623de1537eddcc1ede919202 SHA256 2393918bc65c69e1c19d7712292c945a4adfe45ce02b88ae7663167b8745cf8b
  2 +AUX 136/shell-compat-addon.sh 930 RMD160 c96a77a2085698e4ca3636994d1b6d07326e4b5f SHA1 d696a1ff942d31b493d385cff27bc9cbacd3fa47 SHA256 94b1fe1f5ba892c82798cec6f15b5c5c76e1902ef2d13701ddfbb54f19079af9
  3 +AUX 136/udev-dev-tarball.initd 2579 RMD160 b7feb34f854a3eb08d1203f1faabf9cecee3101c SHA1 10ecda997314851d86a175db8cbfcc6a343e9bb2 SHA256 a829fa3efb9d6aadb137cb8879b8bc2660ef6500b2dbb8d55db8edf52f332d60
  4 +AUX 136/udev-mount.initd 2706 RMD160 f4fbeece9ceb018f19eeeb120e801902b1d7f693 SHA1 466ab0c05ac331acbb8a61d9fb7ff2997c5dee06 SHA256 b35cd8ac15b4db70ed4882a2c5f3823fad5983b8ecb3b45a9977a6e45b62d2a7
  5 +AUX 136/udev-postmount.initd 683 RMD160 a316cd40d8739b9d9a65939dd32a496e8e7786c8 SHA1 0e0faeaf82bd241a895a457669cda1b8cb8c7d77 SHA256 14094a6f8ff2644cab9b20e52e339f002ecaf35a2cb6565d972030a4e43cb3ca
  6 +AUX 136/udev-start.sh 1345 RMD160 c1b4aac1a52da1eac79f3b6a2ccb6e7036a81fdf SHA1 a8d889f3a1ed216d64affa79a99446611899b16d SHA256 5a56cb63ab5fec4f5393eca944d734bab1373bc2a75dcee6b202f86570541414
  7 +AUX 136/udev-stop.sh 237 RMD160 dea1f6d7525e792484c3d2c31d36e8b4d78ebda8 SHA1 72174a2e5e6be2133b2e5f68e477d0fa342b46ce SHA256 1dbdaa45b9f1e54faba9d153a93c0043aabe5b51270c233d3a5e48a6c1d20a1d
  8 +AUX 136/udev.confd 1764 RMD160 255afed98d59675108bc96e1639f9b7e8baed4b3 SHA1 19f465c7140818860ce5031e85118d48544c3629 SHA256 6918ce2ad61a7998088e1628e5bd1b59a9082cdb89dc23b1385f641d8a59cdb6
  9 +AUX 136/udev.initd 5799 RMD160 6991713e7b6339396da68348d3a938e993fc83c1 SHA1 58fb5eb0dbe31d334d744fc3bdfcf70c56dd81d9 SHA256 615d4d8c4e806f89bb94348f9959c1e034447485ac313b41af2e05d384eb991e
  10 +AUX 147/shell-compat-KV.sh 1012 RMD160 5bc85047b4237d502f7b0ccc7181f9974c2b0898 SHA1 bbc58d6181f3fc8d623de1537eddcc1ede919202 SHA256 2393918bc65c69e1c19d7712292c945a4adfe45ce02b88ae7663167b8745cf8b
  11 +AUX 147/shell-compat-addon.sh 1706 RMD160 feda3632aacbda824df059313a9b62fbfa2d087e SHA1 a0fa72aa1129b4abcdb8fc4060313c7bc432c20c SHA256 481eb655c58cbb65163a2ac58022b730d1e720d4066273358627a4fe98c52a1f
  12 +AUX 147/udev-dev-tarball.initd 2579 RMD160 b7feb34f854a3eb08d1203f1faabf9cecee3101c SHA1 10ecda997314851d86a175db8cbfcc6a343e9bb2 SHA256 a829fa3efb9d6aadb137cb8879b8bc2660ef6500b2dbb8d55db8edf52f332d60
  13 +AUX 147/udev-mount.initd 2889 RMD160 1b547d5c97e2aa02a2a0ef003f274dc0b15d4d6c SHA1 5ccc13d7bc23f8a1a78d3e0fcd21c95844933bbd SHA256 d8d21b393b5bcc6069baa9eb52ec073d265c8cd75d7ffa87828fe98b9c693fbc
  14 +AUX 147/udev-postmount.initd 803 RMD160 a68a0ff59442f365f2866f689852f3fdf24413b3 SHA1 76ce7396310d7e352f4e359ccf11991aaf1fda6d SHA256 c3d74922672363f6fe7e2caa2f349448b060ee491eaea2cdefae44800297caa8
  15 +AUX 147/udev-start.sh 1355 RMD160 e2347f29110ca50ce2e608b4f7f62b2054da590e SHA1 8f4dcac83e64253bb32b8fc78f84e46114510b3f SHA256 2721826100e6180d0f76c3a15b14fe0c7d2d09af3dc16f88ceeca312abf1abb6
  16 +AUX 147/udev-stop.sh 237 RMD160 dea1f6d7525e792484c3d2c31d36e8b4d78ebda8 SHA1 72174a2e5e6be2133b2e5f68e477d0fa342b46ce SHA256 1dbdaa45b9f1e54faba9d153a93c0043aabe5b51270c233d3a5e48a6c1d20a1d
  17 +AUX 147/udev.confd 1764 RMD160 255afed98d59675108bc96e1639f9b7e8baed4b3 SHA1 19f465c7140818860ce5031e85118d48544c3629 SHA256 6918ce2ad61a7998088e1628e5bd1b59a9082cdb89dc23b1385f641d8a59cdb6
  18 +AUX 147/udev.initd 6382 RMD160 4476082e89c0a63897bc40ca98ebdf779f75cee4 SHA1 08c6dbe4e8530ec32ee732950b919bfcb833408e SHA256 60a27b041ddb1b69c81b20bfa92df14780fd99fe97edd60c0a178da14c181517
  19 +AUX 151-r4/shell-compat-KV.sh 1012 RMD160 5bc85047b4237d502f7b0ccc7181f9974c2b0898 SHA1 bbc58d6181f3fc8d623de1537eddcc1ede919202 SHA256 2393918bc65c69e1c19d7712292c945a4adfe45ce02b88ae7663167b8745cf8b
  20 +AUX 151-r4/shell-compat-addon.sh 1706 RMD160 feda3632aacbda824df059313a9b62fbfa2d087e SHA1 a0fa72aa1129b4abcdb8fc4060313c7bc432c20c SHA256 481eb655c58cbb65163a2ac58022b730d1e720d4066273358627a4fe98c52a1f
  21 +AUX 151-r4/udev-dev-tarball.initd 2579 RMD160 b7feb34f854a3eb08d1203f1faabf9cecee3101c SHA1 10ecda997314851d86a175db8cbfcc6a343e9bb2 SHA256 a829fa3efb9d6aadb137cb8879b8bc2660ef6500b2dbb8d55db8edf52f332d60
  22 +AUX 151-r4/udev-mount.initd 3027 RMD160 ea148758a48ddb47ee51d838e1d7feb64e31aeb5 SHA1 f6b5ec06037dab5a794406ac6b66bad11b1ca5d7 SHA256 12d79f025cd55feda9510fe9097fdcd90fc6096f19e03b495ab0f6b8566c3ec4
  23 +AUX 151-r4/udev-postmount.initd 806 RMD160 f781fe6bec2136c9d3fcebb675d0467712f98620 SHA1 aba49d7183144e1a547bad48c538d2bd73dce723 SHA256 a7ab507f285a058c9cde2f96dc0aa2bb77db3f94897a4ba21b42404dc6606267
  24 +AUX 151-r4/udev-start.sh 1355 RMD160 e2347f29110ca50ce2e608b4f7f62b2054da590e SHA1 8f4dcac83e64253bb32b8fc78f84e46114510b3f SHA256 2721826100e6180d0f76c3a15b14fe0c7d2d09af3dc16f88ceeca312abf1abb6
  25 +AUX 151-r4/udev-stop.sh 237 RMD160 dea1f6d7525e792484c3d2c31d36e8b4d78ebda8 SHA1 72174a2e5e6be2133b2e5f68e477d0fa342b46ce SHA256 1dbdaa45b9f1e54faba9d153a93c0043aabe5b51270c233d3a5e48a6c1d20a1d
  26 +AUX 151-r4/udev.confd 2002 RMD160 2c8171f4426cac028fbde55c768e784ff379e3b0 SHA1 e6b360334e7ca599d7bf9f4fc7f8ea58b77e256f SHA256 b797379b93d03accf9d8b65f0c4a2f26de1c634c8ba7846f3238dea9211aa153
  27 +AUX 151-r4/udev.initd 6719 RMD160 83b6021bddf695293608184098fa0c5f6be1a891 SHA1 467bb84c90d948d241687fea3c454b23ffadf498 SHA256 f10b0a19e29f4a78f68d30454549010f680ed64140fcd3bccb6e0788ff489818
  28 +AUX 156/40-gentoo.rules 349 RMD160 e2f86db2c5839ce73b08006889c0aa6ff9ba1185 SHA1 14db0043b408e10c8c2e7e4d03de96c10208e5c9 SHA256 5d618b899475925ceccc330b6a738644aedd582d039f0cc404502637351347ea
  29 +AUX 156/90-network.rules 280 RMD160 5e6877819613fbdb0d0c7e8d042e3f3f91247c29 SHA1 25f5abe857a1fe21fa3b035bb88f3d3f81e77b4e SHA256 ba1628cf8df2780546fb158946f1591ef4e4177186d44705e27e71b417590b55
  30 +AUX 156/shell-compat-KV.sh 1012 RMD160 5bc85047b4237d502f7b0ccc7181f9974c2b0898 SHA1 bbc58d6181f3fc8d623de1537eddcc1ede919202 SHA256 2393918bc65c69e1c19d7712292c945a4adfe45ce02b88ae7663167b8745cf8b
  31 +AUX 156/shell-compat-addon.sh 1706 RMD160 feda3632aacbda824df059313a9b62fbfa2d087e SHA1 a0fa72aa1129b4abcdb8fc4060313c7bc432c20c SHA256 481eb655c58cbb65163a2ac58022b730d1e720d4066273358627a4fe98c52a1f
  32 +AUX 156/udev-dev-tarball.initd 2579 RMD160 b7feb34f854a3eb08d1203f1faabf9cecee3101c SHA1 10ecda997314851d86a175db8cbfcc6a343e9bb2 SHA256 a829fa3efb9d6aadb137cb8879b8bc2660ef6500b2dbb8d55db8edf52f332d60
  33 +AUX 156/udev-mount.initd 2707 RMD160 a3df877e1e2714e145f0afd757ffa334349ecce4 SHA1 03663c6d7e7d016de0aab6372446e6c1401c7c04 SHA256 88eea31f0444a4081fe295457403ab62231870321e6610bf91c252b04b0d262a
  34 +AUX 156/udev-postmount.initd 836 RMD160 d8af7958ce0a7d4ab447af440b8f44ae3c72b094 SHA1 167b12c800deae56265308873bf1c94dc222f5b9 SHA256 09ca6b3bf15c6783aabb8820ad5d045ff962eb0cbb9a061874e387eec1f11756
  35 +AUX 156/udev-start.sh 1355 RMD160 e2347f29110ca50ce2e608b4f7f62b2054da590e SHA1 8f4dcac83e64253bb32b8fc78f84e46114510b3f SHA256 2721826100e6180d0f76c3a15b14fe0c7d2d09af3dc16f88ceeca312abf1abb6
  36 +AUX 156/udev-stop.sh 237 RMD160 dea1f6d7525e792484c3d2c31d36e8b4d78ebda8 SHA1 72174a2e5e6be2133b2e5f68e477d0fa342b46ce SHA256 1dbdaa45b9f1e54faba9d153a93c0043aabe5b51270c233d3a5e48a6c1d20a1d
  37 +AUX 156/udev.confd 2003 RMD160 a6dc9af31a3a1374e7c71547c0d57c6c0698f9c5 SHA1 c6e8473952249ab48f1018f675904ff513b1bda1 SHA256 e47efd1839066b0ce38b84b6c881329363b2135f963327b704ad6bb8b4ea4cba
  38 +AUX 156/udev.initd 6672 RMD160 fb95bfb9a4bd9a5746026ed1749a661198669f58 SHA1 6bc6a5efd9a98c6b16e3d4294973c24d672be88d SHA256 87eab976bc6e35070eb2b08e2d92e6c18e5a0fafe7f18bef5c115bed8221f2b5
  39 +AUX 161/40-gentoo.rules 349 RMD160 e2f86db2c5839ce73b08006889c0aa6ff9ba1185 SHA1 14db0043b408e10c8c2e7e4d03de96c10208e5c9 SHA256 5d618b899475925ceccc330b6a738644aedd582d039f0cc404502637351347ea
  40 +AUX 161/90-network.rules 280 RMD160 5e6877819613fbdb0d0c7e8d042e3f3f91247c29 SHA1 25f5abe857a1fe21fa3b035bb88f3d3f81e77b4e SHA256 ba1628cf8df2780546fb158946f1591ef4e4177186d44705e27e71b417590b55
  41 +AUX 161/shell-compat-KV.sh 1012 RMD160 613bddb3853cb0e60ff9a115bc65b331e4937a2e SHA1 42fc07fbc8cd4ac8c7379a5d6df2a2db044d185b SHA256 ea54899826853c2df53beff744b3401c4676dc9667a48abed72bed4e6b9f3f7c
  42 +AUX 161/shell-compat-addon.sh 1706 RMD160 92dd4c3b6fdbdd3ccbaf6d0ae21a6a472f0b4026 SHA1 1a41e6c59c48e795ca946a78dc17d00c579481cb SHA256 4883b9ab305372a93b1c344d1a586cc6e7d1177b8a0e697869ec9f62c84ca6c2
  43 +AUX 161/udev-dev-tarball.initd 2579 RMD160 9c9b80177683ae5a3f5f63668c7a6455025a7431 SHA1 6f46db14fbbace485e80eb1c989929ec5674b04a SHA256 950c8c25b4dccafbd703bcfe5073750e4ce07bdce74305c7c22b9ed3cc8b161c
  44 +AUX 161/udev-mount.initd 2707 RMD160 76afc0c54e3c185bc4a1220872c374ddfe3bb933 SHA1 ee1be53df5da7e7db7f0a009d8eb3236bc3c2baf SHA256 e7509016546307ce08703921086a5531d19da709e1f8f5217042f3c5e54dd847
  45 +AUX 161/udev-postmount.initd 835 RMD160 228f7e0e9f42ef0eeb5053610e0d2dd998d053b4 SHA1 8bf6b0d590c629e9698a5856e9eb2fc7f03728ff SHA256 40d8af9bdd0b41289494fea21766783bc2ae99e90af71b0fda3affddc5789d35
  46 +AUX 161/udev-start.sh 1355 RMD160 dee6ec04573d9b91fdd8aaf772cd4e665b859b6e SHA1 84f73cd4acf69592f3ce7050c9b8ed8fd5d03486 SHA256 92cd1683dd12690994d129fbea9b7e6c63e016959622bac496634f5624dcfe38
  47 +AUX 161/udev-stop.sh 237 RMD160 453c91a97f6b8410e8452d87f27b96970b3521b7 SHA1 72dbec362ab56d9e74c780d73ffc954250608416 SHA256 6b0f6a04cd881fc4baefbeccfa52d7c9db0396a7d0ff178373cb730189b9f84f
  48 +AUX 161/udev.confd 2003 RMD160 a6dc9af31a3a1374e7c71547c0d57c6c0698f9c5 SHA1 c6e8473952249ab48f1018f675904ff513b1bda1 SHA256 e47efd1839066b0ce38b84b6c881329363b2135f963327b704ad6bb8b4ea4cba
  49 +AUX 161/udev.initd 6672 RMD160 03e40f4d1de94a275b72a2a5c2f2614c66b8bed4 SHA1 34040e5fbb03d6e7e3f6f4d85a73998b3be648d6 SHA256 1a308d57e6e0fc9e2ca4cdcc4dcdce66c61facfa0675403b0fbbfd89dae067fe
  50 +AUX 164/40-gentoo.rules 349 RMD160 e2f86db2c5839ce73b08006889c0aa6ff9ba1185 SHA1 14db0043b408e10c8c2e7e4d03de96c10208e5c9 SHA256 5d618b899475925ceccc330b6a738644aedd582d039f0cc404502637351347ea
  51 +AUX 164/90-network.rules 280 RMD160 5e6877819613fbdb0d0c7e8d042e3f3f91247c29 SHA1 25f5abe857a1fe21fa3b035bb88f3d3f81e77b4e SHA256 ba1628cf8df2780546fb158946f1591ef4e4177186d44705e27e71b417590b55
  52 +AUX 164/shell-compat-KV.sh 1012 RMD160 613bddb3853cb0e60ff9a115bc65b331e4937a2e SHA1 42fc07fbc8cd4ac8c7379a5d6df2a2db044d185b SHA256 ea54899826853c2df53beff744b3401c4676dc9667a48abed72bed4e6b9f3f7c
  53 +AUX 164/shell-compat-addon.sh 1706 RMD160 92dd4c3b6fdbdd3ccbaf6d0ae21a6a472f0b4026 SHA1 1a41e6c59c48e795ca946a78dc17d00c579481cb SHA256 4883b9ab305372a93b1c344d1a586cc6e7d1177b8a0e697869ec9f62c84ca6c2
  54 +AUX 164/udev-dev-tarball.initd 2579 RMD160 9c9b80177683ae5a3f5f63668c7a6455025a7431 SHA1 6f46db14fbbace485e80eb1c989929ec5674b04a SHA256 950c8c25b4dccafbd703bcfe5073750e4ce07bdce74305c7c22b9ed3cc8b161c
  55 +AUX 164/udev-mount.initd 2707 RMD160 76afc0c54e3c185bc4a1220872c374ddfe3bb933 SHA1 ee1be53df5da7e7db7f0a009d8eb3236bc3c2baf SHA256 e7509016546307ce08703921086a5531d19da709e1f8f5217042f3c5e54dd847
  56 +AUX 164/udev-postmount.initd 1279 RMD160 d1b0e355ece627013f853c7411ab03fffdec2fd7 SHA1 01a647771c5b17daac2bff70bd0c998a6bf61dce SHA256 90762e488887c488e28a4687c370dfb69302d36aa2b9b164c57059b182a15bca
  57 +AUX 164/udev-start.sh 1355 RMD160 dee6ec04573d9b91fdd8aaf772cd4e665b859b6e SHA1 84f73cd4acf69592f3ce7050c9b8ed8fd5d03486 SHA256 92cd1683dd12690994d129fbea9b7e6c63e016959622bac496634f5624dcfe38
  58 +AUX 164/udev-stop.sh 237 RMD160 453c91a97f6b8410e8452d87f27b96970b3521b7 SHA1 72dbec362ab56d9e74c780d73ffc954250608416 SHA256 6b0f6a04cd881fc4baefbeccfa52d7c9db0396a7d0ff178373cb730189b9f84f
  59 +AUX 164/udev.confd 2003 RMD160 a6dc9af31a3a1374e7c71547c0d57c6c0698f9c5 SHA1 c6e8473952249ab48f1018f675904ff513b1bda1 SHA256 e47efd1839066b0ce38b84b6c881329363b2135f963327b704ad6bb8b4ea4cba
  60 +AUX 164/udev.initd 6672 RMD160 03e40f4d1de94a275b72a2a5c2f2614c66b8bed4 SHA1 34040e5fbb03d6e7e3f6f4d85a73998b3be648d6 SHA256 1a308d57e6e0fc9e2ca4cdcc4dcdce66c61facfa0675403b0fbbfd89dae067fe
  61 +AUX blacklist-110 854 RMD160 6cb0acd91dad5c86c47b41f06f74a8529de08b8e SHA1 aa2c3c8340517053151ee687d76d4de05e28ac51 SHA256 438020f3499a2e10a19ba8d3fe7d567572322093ea878e8c18336b067442bcdd
  62 +AUX blacklist-146 950 RMD160 cc53bfcd2c56bca3cd65b745db80a821122b5c82 SHA1 bdfc5e83d17cef31b6f98546040e1ddf39af3795 SHA256 12d60698be657c9c5b40c8cb6c3649d02f8d8c8f05d63dab7c8bee0a30c339c4
  63 +AUX modprobe-114.sh 2106 RMD160 7b40f1d0c7e41aa51100c99d1b4accafe9309f00 SHA1 d8d3a6b047a416bf4a80a9dde6eddbcc1e7abb1b SHA256 acfff1be773352f71b7e68ec12aafa113150f76ecb1daa03088842d449df9d6b
  64 +AUX modprobe-115.sh 2280 RMD160 effe6766adfff5733d396dbffe00827e61280c5b SHA1 dd9331410db47ce8cfb5ab2d9af8d420905313d6 SHA256 22ab8b9f68bfe6d0acb8d2aec70870700ca03ab80341734cbd059c680473739f
  65 +AUX move_tmp_persistent_rules-112-r1.sh 646 RMD160 462b7836fc1492491e8e67de9301acb05cef847e SHA1 32b1cf96cfa55193c7b7e82640296fc11e7e8031 SHA256 d5dcbb9a13223633e9c4ac8b4eb26ddb38b55af7ea0eec9e512eb47475a07400
  66 +AUX net-104-r10.sh 719 RMD160 e0c3a76c24108d43518f301ebe5cff7f3e06081d SHA1 baa060c99d7c38c26bcc629ee9844319bd886647 SHA256 e3d7b8a447087b7357b6b7713089bf84aecf598714a569be75c45d7c3a7581ee
  67 +AUX net-118-r1.sh 861 RMD160 44335ca0bf482757683fcaf014d2b9072c8fa10c SHA1 7729b61627b71038928310b27099bd02175825df SHA256 90054aeda808a7b82ff08d7185a198f89f9a0b5ad0e3ff8e92940fdec4b7d68a
  68 +AUX net-130-r1.sh 865 RMD160 0025caa63b4b57bac9d6d47a285e8593fd47fc21 SHA1 299b89d6fa04d700e31bf0b8a8eebf90cc8a6640 SHA256 54897b58aba92d9765e8da4349ad777f9d8328bf94922d28cb3210ee0664a6a4
  69 +AUX pnp-aliases 537 RMD160 e0144801b7b9c77eb4897692678b75a661723725 SHA1 8276e2dd1a3be1aa2343797b3f9906606d58c9ca SHA256 690b32a166d060c1c663030c51d5b2298eb9d314c8cef737373e0b16ed751e99
  70 +AUX shell-compat-118-r2.sh 1050 RMD160 9cffc5b6b1159fcf87a6befbfaaf01a632828d9f SHA1 75b90a518372624a850c045993885104e27728dc SHA256 f3a71925ca6b99a34018150b3280c4990b465aa297de55f7784f90b1fe9b5e6a
  71 +AUX shell-compat-118-r3.sh 1554 RMD160 4adb41f34c71704c03d241e291aba4529ee0c43c SHA1 a1bbf28acca0dd3189dba91bc876820364706cd8 SHA256 d5720dd2d572db98320d08572fa1d5f40037697d94e2db6bd7b51ba502fc2876
  72 +AUX shell-compat-KV.sh 1076 RMD160 358d31712adc43d87c7428a4e8b2d3a985f0894b SHA1 0ee2eef68eda64bd63f3559a4b2570b27355a52c SHA256 4a8e1c8cba58676f44bc24e1635df5a64e841f04f95406c4647fe5833dce8ce5
  73 +AUX udev-110-root-link-1.diff 3412 RMD160 d4a61b2825ec593198c286622b5f9a188bd18e51 SHA1 06869481f097a09244de6ccb28e133ca03515fef SHA256 30e983bb086c40e0935680d46c172b3e737b2ad5bc134070451250ebcf39c8c8
  74 +AUX udev-114-root-link-2.diff 4677 RMD160 47b040b51ed0dc637ff2197373db5173bc59854e SHA1 be6ab3162682b4c4cd922d57d356eee4b35d352e SHA256 d212407420bb46a541e547d59862668745dd8b516b6be6e6619cf967ab2124f9
  75 +AUX udev-122-rules-update.diff 586 RMD160 5b9d086ac57ae282b5cd30eda375fc736b2c1af8 SHA1 91ed560c66a5619c7e6fe411a8802acc31682185 SHA256 1eaa8365efa69445e8a1e95c88f1fd411ed3b3f0b73e3d1c3798f0943c5584a8
  76 +AUX udev-124-cdrom-autoclose-bug.diff 1381 RMD160 7e1ee6fa9f59f2528df7c4b3deb1d8c12332b14b SHA1 04daf04b28f2963d98c2826962de625b4ba4b03e SHA256 260a1bd5ad54c8c484a55a503c7b602518070dcc40c2887bb5ec84a5231bedf9
  77 +AUX udev-124-encoding-overflow.patch 326 RMD160 8f08aa593d93451d67bdbfe0b9ea2d59e7a5947e SHA1 9f476abc669656b2ae55eca244a4cc956525ab39 SHA256 870b7347a57909c27cc5c6c03af0b2cf71f18c07b826f8d2d16ac688430d7d28
  78 +AUX udev-124-netlink-owner-check.patch 1162 RMD160 420a22a2762930479df5c7b609931685bba29a6c SHA1 0fbdd35ad860e9b09d141735757fad0319bd08b3 SHA256 c2354e23c451883ab1597603467caf24e0a6893af4d8a3b86aee2ba98917a45e
  79 +AUX udev-141-remove-devfs-names.diff 557 RMD160 c8dbcb0dcc815d78b9f33a6b49290cf21f2b7eee SHA1 5167dc1227e2f07664fad66a24365af192c8ab14 SHA256 9d1d64b41a6ff423fb218a36c56cbdec2d79827741060f39aed2f8ce2d03693f
  80 +AUX udev-150-fix-missing-firmware-timeout.diff 1065 RMD160 79a9fa2321d9d9fc6cf0399ecf326dc5f975719c SHA1 379bdb522edc45a9d9ed748be84f9087bee5b438 SHA256 863f394783ac282a3d83eb84ff0ed0f5dd7982e1b40d10e1081c567f38825371
  81 +AUX udev-151-readd-hd-rules.diff 2759 RMD160 5a3e52ce6442ef14f5f89faa36f98ddeb06fda00 SHA1 d954725615e963ba2854c0e4c0a424450e89280e SHA256 47eb3b3dd8c8c3199148aa083a47b2cbd29953b647b6ed06391424a353e6d39c
  82 +AUX udev-164-remove-v4l1.patch 1263 RMD160 6fac54e8ef9810c57065f730e3fcacb0a47f9143 SHA1 491bdba9b141acff68b9cd18b65055d9f7f41b54 SHA256 df8a13ea471f40383438aa5133465f580841e5cd7a95aedc090d85f7389a6403
  83 +AUX udev-167-revert-disable-all-extras.patch 1281 RMD160 fd62b74bc534aad58690615edc5cbeafcacf3b3e SHA1 3a822ef8b94d5d08cb80546de1b6b5a56b958fea SHA256 fb695c5032f30a2091554db4dcb2713025ffc7e01036e39910421776a54c95d0
  84 +AUX udev-171-uclibc.patch 5276 RMD160 d0d79e8ba4d2e2ae6c003240bbf71a505872e687 SHA1 09394a6742b698e6df3b5d7311804b4b72c56d50 SHA256 9c25968c836f95bb6002c24f7e47e501aa7c181386c70b83b2a9fb367911d583
  85 +AUX udev-175-zlib.patch 2699 RMD160 d0da79d2716ec55370b1f3e6b9039064bae6bf92 SHA1 c9f77c0d6583e8ac8036d8d638ab7dcdc017ccb3 SHA256 064d28cd5c57d3e73445517943c3da9dba98544db8edf025e3f5d98ec11266e4
  86 +AUX udev-postmount-initd-111-r2 508 RMD160 e1f42197fe3003ec4691b768a921029ce085becb SHA1 7ceb08150d429bd6b5cef88d76847575c6e89f22 SHA256 607deb133ab4be0d2fcb16346e86b3d8ae00bd62d2cbc1329458f278a1b1ff5c
  87 +AUX udev-start-113-r2.sh 6515 RMD160 2ecaa37fd9e498e60f8cd5978cb4f7930594cf99 SHA1 670bb1845ed70442fe598a5580101be75e2402c9 SHA256 438bc31605c8d2e50bebedd7fbff1410845738372ab3bc03d6f5ed1427ddd046
  88 +AUX udev-start-114-r1.sh 6218 RMD160 a7348ac44768096b3da712a9be0ef4bf9af6ec17 SHA1 6dfcb9aed5e066d21bebee03d29137722db19b56 SHA256 a639a6f1093f05da197c3fc548c31f7078b2f0023f66f3caade0721c60819268
  89 +AUX udev-start-118-r2.sh 5072 RMD160 24b469dc45b70b6eac82ae3a32f1fb8b0d062c5f SHA1 259ffce13605ad5dd4495926862a1c30ed9c1b51 SHA256 90b6a7616767facf64bcc21563f7333f63633044c24fa56f6ca5647c5b8ee5dc
  90 +AUX udev-start-122-r1.sh 5776 RMD160 50d9aa7d13dbbe04b13d85aee785caa3be36bcd4 SHA1 91216ac58a61a4f5c0d73751f773efb3ffecc8e7 SHA256 6590e4a4bc9a56ec3ead0cef1d7727dc565bdc90dccbbd33dcb56b7f320176ad
  91 +AUX udev-stop-111-r2.sh 2389 RMD160 a3dcd87b999576f552c3a36f43513c68eabf40dd SHA1 a107387dfe9d0e5bbb470cc89186b49248b4e2a9 SHA256 41f0b053033ceaadf1e9334540c129a879aedb35de88f8aff0b3464009fa04fa
  92 +AUX udev-stop-118-r2.sh 2160 RMD160 0c3c40fbe3f931a3a8a41b9bcc98b5d6f6592f45 SHA1 9327cd3f6fd805b198ca7f75dcc839a6ebd04066 SHA256 ebda8f0e744e842b2dc563e58ec9bb18f981c9003a4446fdf95cbbe90df5e62e
  93 +AUX udev.conf.post_113 1084 RMD160 00b356c1be30a03d63bb25516d05eb4688642804 SHA1 4a55d0c0b75673f9863f87717978fcd70219119d SHA256 61ad09df9fbfbe382c7bf3c57eed2b546a324815e8c31bd52e1114b5b8e4eb1b
  94 +AUX udev.conf.post_114 405 RMD160 9cb36e1c4fad99ed0d37952d54a6508bc3ad6428 SHA1 c01872ed68d8b0183aa7fb7e6c721e4408557347 SHA256 1d1ea52357d6318c9bc9f4b77e1509d700ef7576eb255e9be9112ea94685e6fb
  95 +AUX udev.confd 205 RMD160 9a05cf33e0a59d087d647e2aa8b12cd2bea89a3d SHA1 8ed3b9a3a46595e1d7264249f91a645e2bac7968 SHA256 6620d2fba1e76101d67f1b45843f03d62c09089a786b37a8aa8035f1f115d6b6
  96 +AUX udev.initd 1457 RMD160 81d4b42483b578027fce518f19a969a600aa07ce SHA1 609853ec8843b4ddfa18e19c041cc152106ec980 SHA256 8aad04741a9ca4ee9243de642afd9b053b286eaec7d7ae22551c709a0c46c0d3
  97 +AUX write_root_link_rule 1064 RMD160 dae5cc41dc790d34a5d29320fa47411dd45547be SHA1 80e4d5de4b6a08ca263bc55981f2ff8065673eb4 SHA256 3c5b198b0aaf92f88e419f4d11f6e7c5da010d25ccc391b5f4aa600e33825a78
  98 +AUX write_root_link_rule-125 1086 RMD160 669f994678f306d97c79d585c615f56b026b1fa7 SHA1 309fd5155e8a010616adcb51a0b717887ba05ec3 SHA256 f8cff0e73ef40c6a9f642aba35136eac6e60d4cdfb54027aad59f6b770c01915
  99 +DIST udev-171-gentoo-patchset-v1.tar.bz2 796 RMD160 ec60115b9a21866adc484430aa7d8400849e8710 SHA1 66936903026d49ab3b706f23d6713c2d0bfea7ba SHA256 9524e64068d67bb55ddad16dd36a27c3ef87323421254a5bfe2431693b1bc983
  100 +DIST udev-171-testsys.tar.bz2 155001 RMD160 c73d2e52bcca8cd84f9467f8e26ef6efaf5744c2 SHA1 c1ced44f6a1a21e9b0db4c538f605960e750149e SHA256 7383701b64701f58f16e0ddb19fe33b4eb53fac6fc6068bdcbff7e6325b79dcc
  101 +DIST udev-171.tar.bz2 597937 RMD160 5b8f9f1e7ba353c58fef851f6f4e1f4c468540b4 SHA1 8b851f0e8681020b89a76a1e7a0273814fa2b24b SHA256 fed1e46074c1a16c828193ebd73b3940b7905cc7dcaeb0b3c720d4615210695e
  102 +DIST udev-gentoo-scripts-7.tar.bz2 16248 RMD160 51d58ff81f24dc5eb5c696c54739cc4048503295 SHA1 261ee037dec7f3a4abee22e5bd31522cc69d01e0 SHA256 cef8d47fe3b023c40dde621e0c91a9d38b7e7b83de5bae53e71a9027dfc65de7
  103 +EBUILD udev-171-r5.ebuild 15681 RMD160 f6cc3497647333019a59fb503e38ed525af0388d SHA1 17529ab5baf81988ce9fe4c4930cb00d4aad6423 SHA256 6c1f729286612df6932a3444c3ddb37772703c9ab5dcdd9980d55eeba690a8b4
45 sys-fs/udev/files/136/shell-compat-KV.sh
... ... @@ -0,0 +1,45 @@
  1 +# Copyright 1999-2008 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +# provides get_KV and KV_to_int as not all openrc-versions installed via ebuild have these
  5 +
  6 +cmd_exist()
  7 +{
  8 + type "$1" >/dev/null 2>&1
  9 +}
  10 +
  11 +# does exist in baselayout-1
  12 +# does not exist in openrc, but is added by openrc-ebuild since some time
  13 +if ! cmd_exist KV_to_int; then
  14 + KV_to_int() {
  15 + [ -z $1 ] && return 1
  16 +
  17 + local x=${1%%-*}
  18 + local KV_MAJOR=${x%%.*}
  19 + x=${x#*.}
  20 + local KV_MINOR=${x%%.*}
  21 + x=${x#*.}
  22 + local KV_MICRO=${x%%.*}
  23 + local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
  24 +
  25 + # We make version 2.2.0 the minimum version we will handle as
  26 + # a sanity check ... if its less, we fail ...
  27 + [ "${KV_int}" -lt 131584 ] && return 1
  28 +
  29 + echo "${KV_int}"
  30 + }
  31 +fi
  32 +
  33 +# same as KV_to_int
  34 +if ! cmd_exist get_KV; then
  35 + _RC_GET_KV_CACHE=""
  36 + get_KV() {
  37 + [ -z "${_RC_GET_KV_CACHE}" ] \
  38 + && _RC_GET_KV_CACHE="$(uname -r)"
  39 +
  40 + echo "$(KV_to_int "${_RC_GET_KV_CACHE}")"
  41 +
  42 + return $?
  43 + }
  44 +fi
  45 +
43 sys-fs/udev/files/136/shell-compat-addon.sh
... ... @@ -0,0 +1,43 @@
  1 +# Copyright 1999-2008 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +# functions that may not be defined, but are used by the udev-start and udev-stop addon
  5 +# used by baselayout-1 and openrc before version 0.4.0
  6 +
  7 +cmd_exist()
  8 +{
  9 + type "$1" >/dev/null 2>&1
  10 +}
  11 +
  12 +# does not exist in baselayout-1, does exist in openrc
  13 +if ! cmd_exist yesno; then
  14 + yesno() {
  15 + [ -z "$1" ] && return 1
  16 + case "$1" in
  17 + yes|Yes|YES) return 0 ;;
  18 + esac
  19 + return 1
  20 + }
  21 +fi
  22 +
  23 +# does not exist in baselayout-1, does exist in openrc
  24 +if ! cmd_exist fstabinfo; then
  25 + fstabinfo() {
  26 + [ "$1" = "--quiet" ] && shift
  27 + local dir="$1"
  28 +
  29 + # only check RC_USE_FSTAB on baselayout-1
  30 + yesno "${RC_USE_FSTAB}" || return 1
  31 +
  32 + # check if entry is in /etc/fstab
  33 + local ret=$(gawk 'BEGIN { found="false"; }
  34 + $1 ~ "^#" { next }
  35 + $2 == "'$dir'" { found="true"; }
  36 + END { print found; }
  37 + ' /etc/fstab)
  38 +
  39 + "${ret}"
  40 + }
  41 +fi
  42 +
  43 +
95 sys-fs/udev/files/136/udev-dev-tarball.initd
... ... @@ -0,0 +1,95 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2008 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +
  5 +description="Maintain a tarball of not udev managed device nodes"
  6 +[ -e /etc/conf.d/udev ] && . /etc/conf.d/udev
  7 +
  8 +rc_device_tarball=${rc_device_tarball:-${RC_DEVICE_TARBALL:-NO}}
  9 +device_tarball=/lib/udev/state/devices.tar.bz2
  10 +
  11 +depend() {
  12 + if [ -f /etc/init.d/sysfs ]; then
  13 + need udev-mount
  14 + fi
  15 +}
  16 +
  17 +start()
  18 +{
  19 + _start
  20 +}
  21 +
  22 +_start() {
  23 + if yesno "${rc_device_tarball}" && \
  24 + [ -s "${device_tarball}" ]
  25 + then
  26 + ebegin "Populating /dev with saved device nodes"
  27 + tar -jxpf "${device_tarball}" -C /dev
  28 + eend $?
  29 + fi
  30 +}
  31 +
  32 +stop() {
  33 + if [ -e /dev/.devfsd ] || [ ! -e /dev/.udev ] || [ ! -z "${CDBOOT}" ] || \
  34 + ! yesno "${rc_device_tarball}" || \
  35 + ! touch "${device_tarball}" 2>/dev/null
  36 + then
  37 + return 0
  38 + fi
  39 +
  40 + ebegin "Saving device nodes"
  41 + # Handle our temp files
  42 + save_tmp_base=/tmp/udev.savedevices."$$"
  43 + devices_udev="${save_tmp_base}"/devices.udev
  44 + devices_real="${save_tmp_base}"/devices.real
  45 + devices_totar="${save_tmp_base}"/devices.totar
  46 + device_tmp_tarball="${save_tmp_base}"/devices
  47 +
  48 + rm -rf "${save_tmp_base}"
  49 + mkdir "${save_tmp_base}"
  50 + touch "${devices_udev}" "${devices_real}" \
  51 + "${devices_totar}" "${device_tmp_tarball}"
  52 +
  53 + if [ -f "${devices_udev}" -a -f "${devices_real}" -a \
  54 + -f "${devices_totar}" -a -f "${device_tmp_tarball}" ]
  55 + then
  56 + cd /dev
  57 + # Find all devices, but ignore .udev directory
  58 + find . -xdev -type b -or -type c -or -type l | \
  59 + cut -d/ -f2- | \
  60 + grep -v ^\\.udev >"${devices_real}"
  61 +
  62 + # Figure out what udev created
  63 + udevadm info --export-db | sed -ne 's,^[SN]: \(.*\),\1,p' >"${devices_udev}"
  64 + # These ones we also do not want in there
  65 + for x in MAKEDEV core fd initctl pts shm stderr stdin stdout root; do
  66 + echo "${x}" >> "${devices_udev}"
  67 + done
  68 + if [ -d /lib/udev/devices ]; then
  69 + cd /lib/udev/devices
  70 + find . -xdev -type b -or -type c -or -type l | \
  71 + cut -d/ -f2- >> "${devices_udev}"
  72 + cd /dev
  73 + fi
  74 +
  75 + fgrep -x -v -f "${devices_udev}" "${devices_real}" > "${devices_totar}"
  76 +
  77 + # Now only tarball those not created by udev if we have any
  78 + if [ -s "${devices_totar}" ]; then
  79 + # we dont want to descend into mounted filesystems (e.g. devpts)
  80 + # looking up username may involve NIS/network
  81 + # and net may be down
  82 + tar --one-file-system --numeric-owner \
  83 + -jcpf "${device_tmp_tarball}" -T "${devices_totar}"
  84 + mv -f "${device_tmp_tarball}" "${device_tarball}"
  85 + else
  86 + rm -f "${device_tarball}"
  87 + fi
  88 + eend 0
  89 + else
  90 + eend 1 "Could not create temporary files!"
  91 + fi
  92 +
  93 + rm -rf "${save_tmp_base}"
  94 +}
  95 +
107 sys-fs/udev/files/136/udev-mount.initd
... ... @@ -0,0 +1,107 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2008 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +
  5 +description="Mount tmpfs on /dev"
  6 +[ -e /etc/conf.d/udev ] && . /etc/conf.d/udev
  7 +
  8 +# get_KV and KV_to_int
  9 +. /lib/udev/shell-compat-KV.sh
  10 +
  11 +# FIXME
  12 +# Instead of this script testing kernel version, udev itself should
  13 +# Maybe something like udevd --test || exit $?
  14 +check_kernel()
  15 +{
  16 + if [ $(get_KV) -lt $(KV_to_int '%KV_MIN%') ]; then
  17 + eerror "Your kernel is too old to work with this version of udev."
  18 + eerror "Current udev only supports Linux kernel %KV_MIN% and newer."
  19 + return 1
  20 + fi
  21 +
  22 + yesno "${unreliable_kernel_warning:-yes}" || return 0
  23 +
  24 + if [ $(get_KV) -lt $(KV_to_int '%KV_MIN_RELIABLE%') ]; then
  25 + ewarn "You need at least Linux kernel %KV_MIN_RELIABLE% for reliable operation of udev."
  26 + fi
  27 + return 0
  28 +}
  29 +
  30 +
  31 +mount_dev_directory()
  32 +{
  33 + # No options are processed here as they should all be in /etc/fstab
  34 + ebegin "Mounting /dev"
  35 + if fstabinfo --quiet /dev; then
  36 + mount -n /dev
  37 + else
  38 + # Some devices require exec, Bug #92921
  39 + mount -n -t tmpfs -o "exec,nosuid,mode=0755,size=10M" udev /dev
  40 + fi
  41 + eend $?
  42 +}
  43 +
  44 +seed_dev()
  45 +{
  46 + # Seed /dev with some things that we know we need
  47 +
  48 + # creating /dev/console, /dev/tty and /dev/tty1 to be able to write
  49 + # to $CONSOLE with/without bootsplash before udevd creates it
  50 + [ -c /dev/console ] || mknod -m 600 /dev/console c 5 1
  51 + [ -c /dev/tty1 ] || mknod -m 620 /dev/tty1 c 4 1
  52 + [ -c /dev/tty ] || mknod -m 666 /dev/tty c 5 0
  53 +
  54 + # udevd will dup its stdin/stdout/stderr to /dev/null
  55 + # and we do not want a file which gets buffered in ram
  56 + [ -c /dev/null ] || mknod -m 666 /dev/null c 1 3
  57 +
  58 + # so udev can add its start-message to dmesg
  59 + [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
  60 +
  61 + # copy over any persistant things
  62 + if [ -d /lib/udev/devices ]; then
  63 + cp -RPp /lib/udev/devices/* /dev 2>/dev/null
  64 + fi
  65 +
  66 + # Not provided by sysfs but needed
  67 + ln -snf /proc/self/fd /dev/fd
  68 + ln -snf fd/0 /dev/stdin
  69 + ln -snf fd/1 /dev/stdout
  70 + ln -snf fd/2 /dev/stderr
  71 + [ -e /proc/kcore ] && ln -snf /proc/kcore /dev/core
  72 +
  73 + # Create problematic directories
  74 + mkdir -p /dev/pts /dev/shm
  75 + return 0
  76 +}
  77 +
  78 +
  79 +start()
  80 +{
  81 + # do not run this on too old baselayout - udev-addon is already loaded!
  82 + if [ ! -f /etc/init.d/sysfs ]; then
  83 + eerror "The $SVCNAME init-script is written for baselayout-2!"
  84 + eerror "Please do not use it with baselayout-1!".
  85 + return 1
  86 + fi
  87 +
  88 + _start
  89 +}
  90 +
  91 +_start()
  92 +{
  93 + check_kernel || return 1
  94 + mount_dev_directory || return 1
  95 +
  96 + # Selinux lovin; /selinux should be mounted by selinux-patched init
  97 + if [ -x /sbin/restorecon -a -c /selinux/null ]; then
  98 + restorecon /dev > /selinux/null
  99 + fi
  100 +
  101 + # make sure it exists
  102 + mkdir -p /dev/.udev
  103 +
  104 + seed_dev
  105 +
  106 + return 0
  107 +}
31 sys-fs/udev/files/136/udev-postmount.initd
... ... @@ -0,0 +1,31 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2007 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/136/udev-postmount.initd,v 1.3 2009/02/23 16:30:53 zzam Exp $
  5 +
  6 +depend() {
  7 + need localmount
  8 +}
  9 +
  10 +dir_writeable()
  11 +{
  12 + mkdir "$1"/.test.$$ 2>/dev/null && rmdir "$1"/.test.$$
  13 +}
  14 +
  15 +start() {
  16 + # check if this system uses udev
  17 + [ -d /dev/.udev/ ] || return 0
  18 +
  19 + # only continue if rules-directory is writable
  20 + dir_writeable /etc/udev/rules.d || return 0
  21 +
  22 + # store persistent-rules that got created while booting
  23 + # when / was still read-only
  24 + /lib/udev/move_tmp_persistent_rules.sh
  25 +}
  26 +
  27 +stop() {
  28 + :
  29 +}
  30 +
  31 +# vim:ts=4
54 sys-fs/udev/files/136/udev-start.sh
... ... @@ -0,0 +1,54 @@
  1 +# Copyright 1999-2007 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +[ -e /etc/conf.d/udev ] && . /etc/conf.d/udev
  5 +
  6 +. /lib/udev/shell-compat-addon.sh
  7 +
  8 +compat_volume_nodes()
  9 +{
  10 + # Only do this for baselayout-1*
  11 + # This check is likely to get false positives due to some multilib stuff,
  12 + # but that should not matter, as this can only happen on old openrc versions
  13 + # no longer available as ebuilds.
  14 + if [ ! -e /lib/librc.so ]; then
  15 +
  16 + # Create nodes that udev can't
  17 + [ -x /sbin/lvm ] && \
  18 + /sbin/lvm vgscan -P --mknodes --ignorelockingfailure &>/dev/null
  19 + # Running evms_activate on a LiveCD causes lots of headaches
  20 + [ -z "${CDBOOT}" -a -x /sbin/evms_activate ] && \
  21 + /sbin/evms_activate -q &>/dev/null
  22 + fi
  23 +}
  24 +
  25 +start_initd()
  26 +{
  27 + (
  28 + . /etc/init.d/"$1"
  29 + _start
  30 + )
  31 +}
  32 +
  33 +# mount tmpfs on /dev
  34 +start_initd udev-mount || exit 1
  35 +
  36 +# Create a file so that our rc system knows it's still in sysinit.
  37 +# Existance means init scripts will not directly run.
  38 +# rc will remove the file when done with sysinit.
  39 +# this is no longer needed as of openrc-0.4.0
  40 +touch /dev/.rcsysinit
  41 +
  42 +# load device tarball
  43 +start_initd udev-dev-tarball
  44 +
  45 +# run udevd
  46 +start_initd udev || exit 1
  47 +
  48 +compat_volume_nodes
  49 +
  50 +# inject into boot runlevel
  51 +IN_HOTPLUG=1 /etc/init.d/udev-postmount start >/dev/null 2>&1
  52 +
  53 +# udev started successfully
  54 +exit 0
13 sys-fs/udev/files/136/udev-stop.sh
... ... @@ -0,0 +1,13 @@
  1 +# Copyright 1999-2007 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +# for function yesno
  5 +. /lib/udev/shell-compat-addon.sh
  6 +
  7 +# store device tarball
  8 +(
  9 + . /etc/init.d/udev-dev-tarball
  10 + stop
  11 +)
  12 +
  13 +exit 0
56 sys-fs/udev/files/136/udev.confd
... ... @@ -0,0 +1,56 @@
  1 +# /etc/conf.d/udev: config file for udev
  2 +
  3 +# We discourage to disable persistent-net!!
  4 +# this may lead to random interface naming
  5 +
  6 +# Disable adding new rules for persistent-net
  7 +persistent_net_disable="no"
  8 +
  9 +# Disable adding new rules for persistent-cd
  10 +# Disabling this will stop new cdrom devices to appear
  11 +# as /dev/{cdrom,cdrw,dvd,dvdrw}
  12 +persistent_cd_disable="no"
  13 +
  14 +# Set to "yes" if you want to save /dev to a tarball on shutdown
  15 +# and restore it on startup. This is useful if you have a lot of
  16 +# custom device nodes that udev does not handle/know about.
  17 +#
  18 +# As this option is fragile, we recommend you
  19 +# to create your devices in /lib/udev/devices.
  20 +# These will be copied to /dev on boot.
  21 +#rc_device_tarball="NO"
  22 +
  23 +# udev can trigger coldplug events which cause services to start and
  24 +# kernel modules to be loaded.
  25 +# Services are deferred to start in the boot runlevel.
  26 +# Set rc_coldplug="NO" if you don't want this.
  27 +# If you want module coldplugging but not coldplugging of services then you
  28 +# can disable service coldplugging in baselayout/openrc config files.
  29 +# The setting is named different in different versions.
  30 +# in /etc/rc.conf: rc_hotplug="!*" or
  31 +# in /etc/conf.d/rc: rc_plug_services="!*"
  32 +#rc_coldplug="YES"
  33 +
  34 +
  35 +
  36 +
  37 +# Expert options:
  38 +
  39 +# Disable warning about unreliable kernel/udev combination
  40 +#unreliable_kernel_warning="no"
  41 +
  42 +# Timeout in seconds to wait for processing of uevents at boot.
  43 +# There should be no need to change this.
  44 +#udev_settle_timeout="60"
  45 +
  46 +# Run udevadmin monitor to get a log of all events
  47 +# in /dev/.udev/udevmonitor.log
  48 +#udev_monitor="YES"
  49 +
  50 +# Keep udevmonitor running after populating /dev.
  51 +#udev_monitor_keep_running="no"
  52 +
  53 +# Set cmdline options for udevmonitor.
  54 +# could be some of --env --kernel --udev
  55 +#udev_monitor_opts="--env"
  56 +
246 sys-fs/udev/files/136/udev.initd
... ... @@ -0,0 +1,246 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2008 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +
  5 +description="Run udevd and create the device-nodes"
  6 +
  7 +[ -e /etc/udev/udev.conf ] && . /etc/udev/udev.conf
  8 +
  9 +rc_coldplug=${rc_coldplug:-${RC_COLDPLUG:-YES}}
  10 +
  11 +depend()
  12 +{
  13 + if [ -f /etc/init.d/sysfs ]; then
  14 + # require new enough openrc with sysinit being extra runlevel
  15 + # on linux we just check if sysfs init-script exists
  16 + # this is to silence out ugly warnings about not-existing sysfs script
  17 + provide dev
  18 + if yesno "${rc_device_tarball:-no}"; then
  19 + need sysfs udev-mount udev-dev-tarball
  20 + else
  21 + need sysfs udev-mount
  22 + fi
  23 + before checkfs fsck
  24 +
  25 + # udev does not work inside vservers
  26 + keyword novserver
  27 + fi
  28 +}
  29 +
  30 +cleanup()
  31 +{
  32 + # fail more gracely and not leave udevd running
  33 + start-stop-daemon --stop --exec /sbin/udevd
  34 + exit 1
  35 +}
  36 +
  37 +disable_hotplug_agent()
  38 +{
  39 + if [ -e /proc/sys/kernel/hotplug ]; then
  40 + echo "" >/proc/sys/kernel/hotplug
  41 + fi
  42 +}
  43 +
  44 +root_link()
  45 +{
  46 + /lib/udev/write_root_link_rule
  47 +}
  48 +
  49 +rules_disable_switch()
  50 +{
  51 + # this function disables rules files
  52 + # by creating new files with the same name
  53 + # in a temp rules directory with higher priority
  54 + local d=/dev/.udev/rules.d bname="$1" onoff="$2"
  55 +
  56 + if yesno "${onoff}"; then
  57 + mkdir -p "$d"
  58 + echo "# This file disables ${bname} due to /etc/conf.d/udev" \
  59 + > "${d}/${bname}"
  60 + else
  61 + rm -f "${d}/${bname}"
  62 + fi
  63 +}
  64 +
  65 +start_udevd()
  66 +{
  67 + # load unix domain sockets if built as module, Bug #221253
  68 + if [ -e /proc/modules ] ; then
  69 + modprobe -q unix 2>/dev/null
  70 + fi
  71 + ebegin "Starting udevd"
  72 + start-stop-daemon --start --exec /sbin/udevd -- --daemon
  73 + eend $?
  74 +}
  75 +
  76 +# populate /dev with devices already found by the kernel
  77 +populate_dev()
  78 +{
  79 + if get_bootparam "nocoldplug" ; then
  80 + rc_coldplug="NO"
  81 + ewarn "Skipping udev coldplug as requested in kernel cmdline"
  82 + fi
  83 +
  84 + ebegin "Populating /dev with existing devices through uevents"
  85 + if yesno "${rc_coldplug}"; then
  86 + udevadm trigger
  87 + else
  88 + # Do not run any init-scripts, Bug #206518
  89 + udevadm control --env do_not_run_plug_service=1
  90 +
  91 + # only create device nodes
  92 + udevadm trigger --attr-match=dev
  93 +
  94 + # run persistent-net stuff, bug 191466
  95 + udevadm trigger --subsystem-match=net
  96 + fi
  97 + eend $?
  98 +
  99 + ebegin "Waiting for uevents to be processed"
  100 + udevadm settle --timeout=${udev_settle_timeout:-60}
  101 + eend $?
  102 +
  103 + udevadm control --env do_not_run_plug_service=
  104 + return 0
  105 +}
  106 +
  107 +# for debugging
  108 +start_udevmonitor()
  109 +{
  110 + yesno "${udev_monitor:-no}" || return 0
  111 +
  112 + udevmonitor_log=/dev/.udev/udevmonitor.log
  113 + udevmonitor_pid=/dev/.udev/udevmonitor.pid
  114 +
  115 + einfo "udev: Running udevadm monitor ${udev_monitor_opts} to get a log of all events"
  116 + start-stop-daemon --start --stdout "${udevmonitor_log}" \
  117 + --make-pidfile --pidfile "${udevmonitor_pid}" \
  118 + --background --exec /sbin/udevadm -- monitor ${udev_monitor_opts}
  119 +}
  120 +
  121 +stop_udevmonitor()
  122 +{
  123 + yesno "${udev_monitor:-no}" || return 0
  124 +
  125 + if yesno "${udev_monitor_keep_running:-no}"; then
  126 + ewarn "udev: udevmonitor is still running and writing into ${udevmonitor_log}"
  127 + else
  128 + einfo "udev: Stopping udevmonitor: Log is in ${udevmonitor_log}"
  129 + start-stop-daemon --stop --pidfile "${udevmonitor_pid}" --exec /sbin/udevadm
  130 + fi
  131 +}
  132 +
  133 +display_hotplugged_services() {
  134 + local svcfile= svc= services=
  135 + for svcfile in "${RC_SVCDIR}"/hotplugged/*; do
  136 + svc="${svcfile##*/}"
  137 + [ -x "${svcfile}" ] || continue
  138 +
  139 + # do not display this - better: do only inject it later :)
  140 + [ "$svc" = "udev-postmount" ] && continue
  141 +
  142 + services="${services} ${svc}"
  143 + done
  144 + [ -n "${services}" ] && einfo "Device initiated services:${HILITE}${services}${NORMAL}"
  145 +}
  146 +
  147 +inject_postmount_initd() {
  148 + if ! mark_service_hotplugged udev-postmount; then
  149 + IN_HOTPLUG=1 /etc/init.d/udev-postmount start >/dev/null 2>&1
  150 + fi
  151 + #einfo "Injected udev-postmount service"
  152 +}
  153 +
  154 +check_persistent_net()
  155 +{
  156 + # check if there are problems with persistent-net
  157 + local syspath= devs= problem=false
  158 + for syspath in /sys/class/net/*_rename*; do
  159 + if [ -d "${syspath}" ]; then
  160 + devs="${devs} ${syspath##*/}"
  161 + problem=true
  162 + fi
  163 + done
  164 +
  165 + ${problem} || return 0
  166 +
  167 + eerror "UDEV: Your system has a problem assigning persistent names"
  168 + eerror "to these network interfaces: ${devs}"
  169 +
  170 + einfo "Checking persistent-net rules:"
  171 + # the sed-expression lists all duplicate lines
  172 + # from the input, like "uniq -d" does, but uniq
  173 + # is installed into /usr/bin and not available at boot.
  174 + dups=$(
  175 + RULES_FILE='/etc/udev/rules.d/70-persistent-net.rules'
  176 + . /lib/udev/rule_generator.functions
  177 + find_all_rules 'NAME=' '.*' | \
  178 + tr ' ' '\n' | \
  179 + sort | \
  180 + sed '$!N; s/^\(.*\)\n\1$/\1/; t; D'
  181 + )
  182 + if [ -n "${dups}" ]; then
  183 + ewarn "The rules create multiple entries assigning these names:"
  184 + eindent
  185 + ewarn "${dups}"
  186 + eoutdent
  187 + else
  188 + ewarn "Found no duplicate names in persistent-net rules,"
  189 + ewarn "there must be some other problem!"
  190 + fi
  191 + return 1
  192 +}
  193 +
  194 +check_udev_works()
  195 +{
  196 + # should exist on every system, else udev failed
  197 + if [ ! -e /dev/zero ]; then
  198 + eerror "Assuming udev failed somewhere, as /dev/zero does not exist."
  199 + return 1
  200 + fi
  201 + return 0
  202 +}
  203 +
  204 +start()
  205 +{
  206 + # do not run this on old baselayout where udev-addon gets loaded
  207 + if [ ! -f /etc/init.d/sysfs ]; then
  208 + eerror "The $SVCNAME init-script is written for baselayout-2!"
  209 + eerror "Please do not use it with baselayout-1!".
  210 + return 1
  211 + fi
  212 +
  213 + _start
  214 +
  215 + display_hotplugged_services
  216 +
  217 + inject_postmount_initd
  218 +
  219 + return 0
  220 +}
  221 +
  222 +_start()
  223 +{
  224 + root_link
  225 + rules_disable_switch 75-persistent-net-generator.rules "${persistent_net_disable:-no}"
  226 + rules_disable_switch 75-cd-aliases-generator.rules ${persistent_cd_disable:-no}
  227 +
  228 + disable_hotplug_agent
  229 + start_udevd || cleanup
  230 + start_udevmonitor
  231 + populate_dev || cleanup
  232 +
  233 + check_persistent_net
  234 +
  235 + check_udev_works || cleanup
  236 + stop_udevmonitor
  237 +
  238 + return 0
  239 +}
  240 +
  241 +stop() {
  242 + ebegin "Stopping udevd"
  243 + start-stop-daemon --stop --exec /sbin/udevd
  244 + eend $?
  245 +}
  246 +
45 sys-fs/udev/files/147/shell-compat-KV.sh
... ... @@ -0,0 +1,45 @@
  1 +# Copyright 1999-2008 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +# provides get_KV and KV_to_int as not all openrc-versions installed via ebuild have these
  5 +
  6 +cmd_exist()
  7 +{
  8 + type "$1" >/dev/null 2>&1
  9 +}
  10 +
  11 +# does exist in baselayout-1
  12 +# does not exist in openrc, but is added by openrc-ebuild since some time
  13 +if ! cmd_exist KV_to_int; then
  14 + KV_to_int() {
  15 + [ -z $1 ] && return 1
  16 +
  17 + local x=${1%%-*}
  18 + local KV_MAJOR=${x%%.*}
  19 + x=${x#*.}
  20 + local KV_MINOR=${x%%.*}
  21 + x=${x#*.}
  22 + local KV_MICRO=${x%%.*}
  23 + local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))
  24 +
  25 + # We make version 2.2.0 the minimum version we will handle as
  26 + # a sanity check ... if its less, we fail ...
  27 + [ "${KV_int}" -lt 131584 ] && return 1
  28 +
  29 + echo "${KV_int}"
  30 + }
  31 +fi
  32 +
  33 +# same as KV_to_int
  34 +if ! cmd_exist get_KV; then
  35 + _RC_GET_KV_CACHE=""
  36 + get_KV() {
  37 + [ -z "${_RC_GET_KV_CACHE}" ] \
  38 + && _RC_GET_KV_CACHE="$(uname -r)"
  39 +
  40 + echo "$(KV_to_int "${_RC_GET_KV_CACHE}")"
  41 +
  42 + return $?
  43 + }
  44 +fi
  45 +
71 sys-fs/udev/files/147/shell-compat-addon.sh
... ... @@ -0,0 +1,71 @@
  1 +# Copyright 1999-2008 Gentoo Foundation
  2 +# Distributed under the terms of the GNU General Public License v2
  3 +
  4 +# functions that may not be defined, but are used by the udev-start and udev-stop addon
  5 +# used by baselayout-1 and openrc before version 0.4.0
  6 +
  7 +cmd_exist()
  8 +{
  9 + type "$1" >/dev/null 2>&1
  10 +}
  11 +
  12 +# does not exist in baselayout-1, does exist in openrc
  13 +if ! cmd_exist yesno; then
  14 + yesno() {
  15 + [ -z "$1" ] && return 1
  16 + case "$1" in
  17 + yes|Yes|YES) return 0 ;;
  18 + esac
  19 + return 1
  20 + }
  21 +fi
  22 +
  23 +# does not exist in baselayout-1, does exist in openrc
  24 +#
  25 +# mountinfo <path>
  26 +# check if some filesystem is mounted at mountpoint <path>
  27 +#
  28 +# return value:
  29 +# 0 filesystem is mounted at <path>
  30 +# 1 no filesystem is mounted exactly at <path>
  31 +if ! cmd_exist mountinfo; then
  32 + mountinfo() {
  33 + [ "$1" = "-q" ] && shift
  34 + local dir="$1"
  35 +
  36 + # check if entry is in /proc/mounts
  37 + local ret=$(gawk 'BEGIN { found="false"; }
  38 + $1 ~ "^#" { next }
  39 + $2 == "'$dir'" { found="true"; }
  40 + END { print found; }
  41 + ' /proc/mounts)
  42 +
  43 + "${ret}"
  44 + }
  45 +fi
  46 +
  47 +# does not exist in baselayout-1, does exist in openrc
  48 +#
  49 +# used syntax: fstabinfo --mount /dev
  50 +# it should mount /dev if an entry exists in /etc/fstab
  51 +#
  52 +# return value:
  53 +# 0 mount succeeded
  54 +# 1 mount failed or no entry exists
  55 +#
  56 +if ! cmd_exist fstabinfo; then
  57 + fstabinfo() {
  58 + [ "$1" = "--mount" ] || return 1
  59 + local dir="$2"
  60 +
  61 + # RC_USE_FSTAB does only exist in baselayout-1
  62 + # this emulation is only needed on bl-1, so check always
  63 + yesno "${RC_USE_FSTAB}" || return 1
  64 +
  65 + # no need to check fstab, mount does this already for us
  66 +
  67 + # try mounting - better first check fstab and then mount without surpressing errors
  68 + mount -n "${dir}" 2>/dev/null
  69 + return $?
  70 + }
  71 +fi
95 sys-fs/udev/files/147/udev-dev-tarball.initd
... ... @@ -0,0 +1,95 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2008 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +
  5 +description="Maintain a tarball of not udev managed device nodes"
  6 +[ -e /etc/conf.d/udev ] && . /etc/conf.d/udev
  7 +
  8 +rc_device_tarball=${rc_device_tarball:-${RC_DEVICE_TARBALL:-NO}}
  9 +device_tarball=/lib/udev/state/devices.tar.bz2
  10 +
  11 +depend() {
  12 + if [ -f /etc/init.d/sysfs ]; then
  13 + need udev-mount
  14 + fi
  15 +}
  16 +
  17 +start()
  18 +{
  19 + _start
  20 +}
  21 +
  22 +_start() {
  23 + if yesno "${rc_device_tarball}" && \
  24 + [ -s "${device_tarball}" ]
  25 + then
  26 + ebegin "Populating /dev with saved device nodes"
  27 + tar -jxpf "${device_tarball}" -C /dev
  28 + eend $?
  29 + fi
  30 +}
  31 +
  32 +stop() {
  33 + if [ -e /dev/.devfsd ] || [ ! -e /dev/.udev ] || [ ! -z "${CDBOOT}" ] || \
  34 + ! yesno "${rc_device_tarball}" || \
  35 + ! touch "${device_tarball}" 2>/dev/null
  36 + then
  37 + return 0
  38 + fi
  39 +
  40 + ebegin "Saving device nodes"
  41 + # Handle our temp files
  42 + save_tmp_base=/tmp/udev.savedevices."$$"
  43 + devices_udev="${save_tmp_base}"/devices.udev
  44 + devices_real="${save_tmp_base}"/devices.real
  45 + devices_totar="${save_tmp_base}"/devices.totar
  46 + device_tmp_tarball="${save_tmp_base}"/devices
  47 +
  48 + rm -rf "${save_tmp_base}"
  49 + mkdir "${save_tmp_base}"
  50 + touch "${devices_udev}" "${devices_real}" \
  51 + "${devices_totar}" "${device_tmp_tarball}"
  52 +
  53 + if [ -f "${devices_udev}" -a -f "${devices_real}" -a \
  54 + -f "${devices_totar}" -a -f "${device_tmp_tarball}" ]
  55 + then
  56 + cd /dev
  57 + # Find all devices, but ignore .udev directory
  58 + find . -xdev -type b -or -type c -or -type l | \
  59 + cut -d/ -f2- | \
  60 + grep -v ^\\.udev >"${devices_real}"
  61 +
  62 + # Figure out what udev created
  63 + udevadm info --export-db | sed -ne 's,^[SN]: \(.*\),\1,p' >"${devices_udev}"
  64 + # These ones we also do not want in there
  65 + for x in MAKEDEV core fd initctl pts shm stderr stdin stdout root; do
  66 + echo "${x}" >> "${devices_udev}"
  67 + done
  68 + if [ -d /lib/udev/devices ]; then
  69 + cd /lib/udev/devices
  70 + find . -xdev -type b -or -type c -or -type l | \
  71 + cut -d/ -f2- >> "${devices_udev}"
  72 + cd /dev
  73 + fi
  74 +
  75 + fgrep -x -v -f "${devices_udev}" "${devices_real}" > "${devices_totar}"
  76 +
  77 + # Now only tarball those not created by udev if we have any
  78 + if [ -s "${devices_totar}" ]; then
  79 + # we dont want to descend into mounted filesystems (e.g. devpts)
  80 + # looking up username may involve NIS/network
  81 + # and net may be down
  82 + tar --one-file-system --numeric-owner \
  83 + -jcpf "${device_tmp_tarball}" -T "${devices_totar}"
  84 + mv -f "${device_tmp_tarball}" "${device_tarball}"
  85 + else
  86 + rm -f "${device_tarball}"
  87 + fi
  88 + eend 0
  89 + else
  90 + eend 1 "Could not create temporary files!"
  91 + fi
  92 +
  93 + rm -rf "${save_tmp_base}"
  94 +}
  95 +
114 sys-fs/udev/files/147/udev-mount.initd
... ... @@ -0,0 +1,114 @@
  1 +#!/sbin/runscript
  2 +# Copyright 1999-2008 Gentoo Foundation
  3 +# Distributed under the terms of the GNU General Public License v2
  4 +
  5 +description="Mount tmpfs on /dev"
  6 +[ -e /etc/conf.d/udev ] && . /etc/conf.d/udev
  7 +
  8 +# get_KV and KV_to_int
  9 +. /lib/udev/shell-compat-KV.sh
  10 +
  11 +# FIXME
  12 +# Instead of this script testing kernel version, udev itself should
  13 +# Maybe something like udevd --test || exit $?
  14 +check_kernel()
  15 +{
  16 + if [ $(get_KV) -lt $(KV_to_int '%KV_MIN%') ]; then
  17 + eerror "Your kernel is too old to work with this version of udev."
  18 + eerror "Current udev only supports Linux kernel %KV_MIN% and newer."
  19 + return 1
  20 + fi
  21 +
  22 + yesno "${unreliable_kernel_warning:-yes}" || return 0
  23 +
  24 + if [ $(get_KV) -lt $(KV_to_int '%KV_MIN_RELIABLE%') ]; then
  25 + ewarn "You need at least Linux kernel %KV_MIN_RELIABLE% for reliable operation of udev."
  26 + fi
  27 + return 0
  28 +}
  29 +
  30 +
  31 +mount_dev_directory()
  32 +{
  33 + if mountinfo -q /dev; then
  34 + einfo "/dev is already mounted"
  35 + return 0
  36 + fi
  37 +
  38 + # No options are processed here as they should all be in /etc/fstab
  39 + ebegin "Mounting /dev"
  40 + if ! fstabinfo --mount /dev; then
  41 + # we mount devtmpfs if supported
  42 + local fs=tmpfs