Advertisement
fbcyborg

more `ls /etc/udev/rules.d/*|grep -v sane` /etc/modprobe.d/*

Nov 20th, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.98 KB | None | 0 0
  1. ::::::::::::::
  2. /etc/udev/rules.d/51-lirc.rules
  3. ::::::::::::::
  4. #
  5. # This is a hack since /sys info for event devices is incomplete
  6. #
  7. # Check if the name of the event device contains the string IR and
  8. # create the /dev/input/ir symlink.
  9. KERNEL=="event*", SUBSYSTEM=="input", ATTRS{name}=="*IR*", SYMLINK+="input/ir"
  10.  
  11. # If your remote does not have 'IR' in it's name add a line like the
  12. # following (this one is for the Cinergy T2). You can look up the
  13. # name of the device in /proc/bus/input/devices
  14. KERNEL=="event*", SUBSYSTEM=="input", ATTRS{name}=="TerraTec/qanu USB2.0 Highspeed DVB-T Receiver remote control", SYMLINK+="input/ir"
  15. ::::::::::::::
  16. /etc/udev/rules.d/55-hpmud.rules
  17. ::::::::::::::
  18. # HPLIP udev rules file for HP printer and all-in-one products.
  19. #
  20. # Notes for downstream implementers.
  21. #
  22. # 1. The 55-hpmud.rules name was chosen in order to run after the default udev rule /etc/udev/rules.d/50-udev.rules. See
  23. # "Writing udev rules" Ver 0.74, Daniel Drake. Although it seems 50-udev.rules is no longer used I continue to reuse "55-"
  24. # name for backward compatibility with older distros. 2/11/2009, D Suffield
  25. #
  26. # 2. It seems SFSFS has been replaced or depreciated by ATTR/ATTRS, but I continue to use SFSFS in order to be compatible with
  27. # older distros. SFSFS was defined in "Writing udev rules" Ver 0.72, Daniel Drake. 2/11/2009, D Suffield
  28. #
  29. # 3. This rules file is an attempt at being compatable with all distros. Feel free to make your own changes and if you feel your
  30. # changes are not distro specific please send your patch to us. 2/11/2009, D Suffield
  31. #
  32. # Novell/Suse changed:
  33. #
  34. # SYSFS{idVendor} to ATTR{idVendor} and
  35. # SYSFS{idProduct to ATTR{idProduct}
  36. # because SYSFS is deprecated and ATTR works for openSUSE.
  37. #
  38. # MODE="660" to MODE="0664"
  39. # because it is sufficiently secure to let any user read the device nodes
  40. # because HPLIP opens the device nodes exclusively so that sniffing
  41. # of print jobs or scanner image data should not be possible and
  42. # read permissions for any user is required in particular for USB devices
  43. # so that any user can see the USB devices when he runs the command "lsusb".
  44. #
  45. # Added ENV{sane_hpaio}="yes" to all entries for USB devices
  46. # to get the SANE driver "hpaio" automatically activated in any case
  47. # (only scanners in HP parallel port all-in-one devices are ignored)
  48. # because not only "AiO products (0x03f0xx11)" can have scanner units
  49. # but also Photosmart products, inkjet printers, and laser printers
  50. # (e.g. the LaserJet 1220 03f0:0417 has a scanner unit).
  51. # An activated SANE driver does not cause continuous system load because
  52. # it is only run when the user launches a scanning frontend (e.g. xsane)
  53. # and then all what the driver does is to scan the USB device information
  54. # to find devices which belong to the driver and if nothing found it exits.
  55. # Additionally see https://bugzilla.novell.com/show_bug.cgi?id=469721#c9
  56. #
  57. # Added ENV{libsane_matched}="yes" to all entries for USB devices
  58. # to get normal user access permissions via udev, see
  59. # https://bugzilla.novell.com/show_bug.cgi?id=542473#c14
  60. #
  61. # Added same rule to disable USB autosuspend
  62. # as in /etc/udev/rules.d/55-libsane.rules
  63. #
  64.  
  65. ACTION!="add", GOTO="hpmud_rules_end"
  66. SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
  67. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hplip_pid_test"
  68. SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
  69.  
  70. LABEL="hplip_pid_test"
  71.  
  72. # Check for AiO products (0x03f0xx11).
  73. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??11", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  74. "
  75.  
  76. # Check for Photosmart products without wildcard since cameras and scanners also used (0x03f0xx02).
  77. # The xx02 pid has been retired so this explicit list should not change.
  78. # photosmart_d2300_series
  79. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c302", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  80. "
  81. # photosmart_100
  82. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3802", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  83. "
  84. # photosmart_1115
  85. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3402", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  86. "
  87. # photosmart_1215
  88. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3202", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  89. "
  90. # photosmart_1218
  91. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3302", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  92. "
  93. # photosmart_130
  94. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3902", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  95. "
  96. # photosmart_1315
  97. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3602", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  98. "
  99. # photosmart_140_series
  100. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1002", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  101. "
  102. # photosmart_230
  103. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3502", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  104. "
  105. # photosmart_240_series
  106. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1102", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  107. "
  108. # photosmart_320_series
  109. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1202", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  110. "
  111. # photosmart_330_series
  112. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1602", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  113. "
  114. # photosmart_370_series
  115. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1302", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  116. "
  117. # photosmart_380_series
  118. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1702", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  119. "
  120. # photosmart_420_series
  121. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1502", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  122. "
  123. # photosmart_470_series
  124. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1802", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  125. "
  126. # photosmart_7150
  127. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3a02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  128. "
  129. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3b02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  130. "
  131. # photosmart_7200_series
  132. ATTR{idVendor}=="03f0", ATTR{idProduct}=="b002", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  133. "
  134. # photosmart_7345
  135. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2002", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  136. "
  137. # photosmart_7350
  138. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3c02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  139. "
  140. # photosmart_7400_series
  141. ATTR{idVendor}=="03f0", ATTR{idProduct}=="b802", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  142. "
  143. # photosmart_7550
  144. ATTR{idVendor}=="03f0", ATTR{idProduct}=="3e02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  145. "
  146. # photosmart_7600_series
  147. ATTR{idVendor}=="03f0", ATTR{idProduct}=="b202", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  148. "
  149. # photosmart_7700_series
  150. ATTR{idVendor}=="03f0", ATTR{idProduct}=="b402", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  151. "
  152. # photosmart_7800_series
  153. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c002", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  154. "
  155. # photosmart_7900_series
  156. ATTR{idVendor}=="03f0", ATTR{idProduct}=="b602", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  157. "
  158. # photosmart_8000_series
  159. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c102", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  160. "
  161. # photosmart_8100_series
  162. ATTR{idVendor}=="03f0", ATTR{idProduct}=="ba02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  163. "
  164. # photosmart_8200_series
  165. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c202", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  166. "
  167. # photosmart_8400_series
  168. ATTR{idVendor}=="03f0", ATTR{idProduct}=="bb02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  169. "
  170. # photosmart_8700_series
  171. ATTR{idVendor}=="03f0", ATTR{idProduct}=="bc02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  172. "
  173. # photosmart_a310_series
  174. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1d02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  175. "
  176. # photosmart_a320_series
  177. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1e02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  178. "
  179. # photosmart_a430_series
  180. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1902", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  181. "
  182. # photosmart_a440_series
  183. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1f02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  184. "
  185. # photosmart_a510_series
  186. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1a02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  187. "
  188. # photosmart_a520_series
  189. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2602", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  190. "
  191. # photosmart_a530_series
  192. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2b02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  193. "
  194. # photosmart_a610_series
  195. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1b02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  196. "
  197. # photosmart_a620_series
  198. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2702", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  199. "
  200. # photosmart_a630_series
  201. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2c02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  202. "
  203. # photosmart_a710_series
  204. ATTR{idVendor}=="03f0", ATTR{idProduct}=="1c02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  205. "
  206. # photosmart_a820_series
  207. ATTR{idVendor}=="03f0", ATTR{idProduct}=="2902", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  208. "
  209. # photosmart_d5060_series
  210. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c802", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  211. "
  212. # photosmart_d5100_series
  213. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c402", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  214. "
  215. # photosmart_d6100_series
  216. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c502", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  217. "
  218. # photosmart_d7100_series
  219. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c602", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  220. "
  221. # photosmart_d7300_series
  222. ATTR{idVendor}=="03f0", ATTR{idProduct}=="c702", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  223. "
  224. # photosmart_pro_b8300_series
  225. ATTR{idVendor}=="03f0", ATTR{idProduct}=="be02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  226. "
  227. # photosmart_b8800_series
  228. ATTR{idVendor}=="03f0", ATTR{idProduct}=="d002", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  229. "
  230. # photosmart_pro_b9100_series
  231. ATTR{idVendor}=="03f0", ATTR{idProduct}=="bd02", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  232. "
  233. # Photosmart_B8500_series
  234. ATTR{idVendor}=="03f0", ATTR{idProduct}=="d102", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  235. "
  236. # Photosmart_A640_series
  237. ATTR{idVendor}=="03f0", ATTR{idProduct}=="7902", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  238. "
  239.  
  240. # Check for Business Inkjet products (0x03f0xx12).
  241. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??12", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  242. "
  243. # Check for Deskjet products (0x03f0xx04).
  244. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??04", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  245. "
  246. # Check for LaserJet products (0x03f0xx17).
  247. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??17", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  248. "
  249. # Check for LaserJet products (0x03f0xx2a).
  250. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??2a", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  251. "
  252. # Check for DesignJet product (0x03f0xx14).
  253. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??14", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes
  254. "
  255.  
  256. # Removed the following rule because FHS states that /etc should be reserved for static files only. This
  257. # functionality should be done in a deb/rpm post install script. 2/11/2009, D Suffield
  258. #
  259. # Novell/openSUSE re-enabled it
  260. # because it is how it works with SANE regardless what FHS think how it should work.
  261. # Files in /etc/ are config files which can be adapted as needed during runtime.
  262. # Adapting /etc/sane.d/dll.conf only during package install time is insufficient
  263. # because a device may be not connected by the admin during package install time
  264. # but later during runtime by the system's end-user (e.g. on a company workstation).
  265. #
  266. # If sane-bankends is installed add hpaio backend support to dll.conf if needed.
  267. ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/san
  268. e.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'"
  269.  
  270. # The following rule will disable USB autosuspend for the device
  271. ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/power/level && echo on > /sys/$env{DEVPATH}/power/level'"
  272.  
  273. LABEL="hpmud_rules_end"
  274.  
  275. ::::::::::::::
  276. /etc/udev/rules.d/56-hpmud_support.rules
  277. ::::::::::::::
  278. # HPLIP udev rules file. Notify console user if plugin support is required for this device.
  279.  
  280. ACTION!="add", GOTO="hpmud_support_rules_end"
  281. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_support_pid_test"
  282. SUBSYSTEM!="usb_device", GOTO="hpmud_support_rules_end"
  283.  
  284. LABEL="hpmud_support_pid_test"
  285.  
  286. # Check for LaserJet products (0x03f0xx17).
  287. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??17", ENV{hp_model}="$sysfs{product}", ENV{hp_test}="yes"
  288. # Check for LaserJet products (0x03f0xx2a).
  289. ATTR{idVendor}=="03f0", ATTR{idProduct}=="??2a", ENV{hp_model}="$sysfs{product}", ENV{hp_test}="yes"
  290.  
  291. ENV{hp_test}=="yes", RUN+="bin/sh -c '/usr/bin/hp-mkuri -c &'"
  292.  
  293. LABEL="hpmud_support_rules_end"
  294.  
  295. ::::::::::::::
  296. /etc/udev/rules.d/70-kpartx.rules
  297. ::::::::::::::
  298. #
  299. # persistent links for device-mapper devices
  300. # only hardware-backed device-mapper devices (ie multipath, dmraid,
  301. # and kpartx) have meaningful persistent device names
  302. #
  303.  
  304. KERNEL!="dm-*", GOTO="kpartx_end"
  305. ACTION=="remove", GOTO="kpartx_end"
  306.  
  307. ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"
  308. ENV{DM_UUID}=="?*", IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}"
  309.  
  310. ENV{DM_UUID}=="mpath-*", IMPORT{program}="vol_id --export $tempnode"
  311. ENV{DM_PART}=="?*", IMPORT{program}="vol_id --export $tempnode"
  312.  
  313. OPTIONS="link_priority=50"
  314.  
  315. # Create persistent links for multipath tables
  316. ENV{DM_UUID}=="mpath-*", \
  317. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
  318. ENV{DM_MPATH}=="?*", ENV{DM_PART}!="?*", \
  319. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_MPATH}"
  320.  
  321. # Create persistent links for dmraid tables
  322. ENV{DM_UUID}=="DMRAID-*|dmraid-*", \
  323. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
  324.  
  325. # Create persistent links for linear tables
  326. ENV{DM_UUID}=="linear-*", \
  327. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
  328.  
  329. # Create persistent links for partitions
  330. ENV{DM_PART}=="?*", \
  331. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}-part$env{DM_PART}"
  332. ENV{DM_MPATH}=="?*", ENV{DM_PART}=="?*", \
  333. SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_MPATH}-part$env{DM_PART}"
  334.  
  335. # Create persistent by-label/by-uuid links
  336. ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", \
  337. SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
  338. ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", \
  339. SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
  340.  
  341. # Create dm tables for partitions
  342. ENV{DM_ACTION}=="PATH_FAILED|PATH_REINSTATED", GOTO="kpartx_end"
  343. ENV{DM_STATE}!="SUSPENDED", ENV{DM_DEPS}!="0", ENV{DM_UUID}=="mpath-*", \
  344. RUN+="/sbin/kpartx -u -p _part /dev/$kernel"
  345. ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="DMRAID-*|dmraid-*", \
  346. RUN+="/sbin/kpartx -u -p _part /dev/$kernel"
  347. ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="linear-*", \
  348. RUN+="/sbin/kpartx -u -p _part /dev/$kernel"
  349.  
  350. LABEL="kpartx_end"
  351.  
  352. ::::::::::::::
  353. /etc/udev/rules.d/70-persistent-cd.rules
  354. ::::::::::::::
  355. # This file was automatically generated by the /lib/udev/write_cd_rules
  356. # program, run by the cd-aliases-generator.rules rules file.
  357. #
  358. # You can modify it, as long as you keep each rule on a single
  359. # line, and set the $GENERATED variable.
  360.  
  361. # QEMU_DVD-ROM (pci-0000:00:01.1-scsi-1:0:0:0)
  362. SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:01.1-scsi-1:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
  363. SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:01.1-scsi-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
  364.  
  365. ::::::::::::::
  366. /etc/udev/rules.d/70-persistent-net.rules
  367. ::::::::::::::
  368. # This file was automatically generated by the /lib/udev/write_net_rules
  369. # program,run by the persistent-net-generator.rules rules file.
  370. #
  371. # You can modify it,as long as you keep each rule on a single
  372. # line,and change only the value of the NAME= key.
  373. # PCI device 0x10ec:0x8139 (8139cp)
  374. # This file was automatically generated by the /lib/udev/write_net_rules
  375. # program,run by the persistent-net-generator.rules rules file.
  376. #
  377. # You can modify it,as long as you keep each rule on a single
  378. # line,and change only the value of the NAME= key.
  379. # PCI device 0x10ec:0x8139 (8139cp)
  380. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:3e:00:00:21", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*"
  381. , NAME="eth0"
  382. ::::::::::::::
  383. /etc/udev/rules.d/71-multipath.rules
  384. ::::::::::::::
  385. #
  386. # udev rules for multipathing.
  387. # The persistent symlinks are created with the kpartx rules
  388. #
  389.  
  390. # socket for uevents
  391. SUBSYSTEM=="block", RUN+="socket:/org/kernel/dm/multipath_event"
  392. ::::::::::::::
  393. /etc/udev/rules.d/77-network.rules
  394. ::::::::::::::
  395. # Driver module ipw3945 requires an userspace daemon to register network
  396. # interfaces.
  397. SUBSYSTEM=="drivers", ACTION=="add", DEVPATH=="/bus/pci/drivers/ipw3945", RUN+="ipw3945d.sh"
  398.  
  399. #
  400. # Apply per interface sysctl settings before setup (see man 5 ifsysctl):
  401. #
  402. SUBSYSTEM=="net", ACTION=="add", RUN+="/etc/sysconfig/network/scripts/ifup-sysctl $env{INTERFACE} -o hotplug"
  403.  
  404. #
  405. # The following rules are to:
  406. # - mark a (physical) interface as renamed to it's persistent name and
  407. # ready to configure by the network service.
  408. # - set up a (physical) network interface automatically when there is
  409. # a configuration for and the network service is already active.
  410. # - clean up things by calling ifdown when the interface gets removed
  411. # (e.g. kill ifplugd or another daemon) and in fact vanished already.
  412. #
  413. # There are (virtual) interfaces, which are created with ifup. We have
  414. # to ignore these interfaces to avoid nested ifup / ifdown execution.
  415. # We do it here name based for the well known/default interface names,
  416. # ifup makes it again by interface type to catch also custom names.
  417. #
  418. SUBSYSTEM=="net", ENV{INTERFACE}=="lo*|dummy*|vif*.*|br*|bond*|vlan*|gre*|sit*|tap*|tun*|ipip*|ip6tnl*|ipsec*|ppp*|ippp*|isdn*|modem*|ds
  419. l*|plip*|irda*", GOTO="skip_ifup"
  420. SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug"
  421. SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug"
  422. LABEL="skip_ifup"
  423. ::::::::::::::
  424. /etc/udev/rules.d/81-mount.rules
  425. ::::::::::::::
  426. # Udev rules for udevmountd
  427.  
  428. # Skip 'add' events for device-mapper
  429. ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", GOTO="skip_mount"
  430. ACTION=="add", SUBSYSTEM=="block", KERNEL=="md*", GOTO="skip_mount"
  431. # don't handle crypto devices, boot.crypto does that already (bnc#569942)
  432. ACTION=="change", SUBSYSTEM=="block", KERNEL=="dm-*", ENV{DM_TARGET_TYPES}=="crypt", GOTO="skip_mount"
  433. ACTION=="add|change", SUBSYSTEM=="block", ENV{FSTAB_OPTS}=="*nofail*", IMPORT="udevmountd"
  434.  
  435. ACTION=="add|change", ENV{FSCK_STATE}=="unknown|clean", RUN+="udevmountd add"
  436. ACTION=="remove", ENV{FSTAB_OPTS}=="*nofail*", RUN+="udevmountd remove"
  437.  
  438. LABEL="skip_mount"
  439. ::::::::::::::
  440. /etc/udev/rules.d/99-iwlwifi-led.rules
  441. ::::::::::::::
  442. SUBSYSTEM=="leds", ACTION=="add", KERNEL=="iwl-phy*:assoc", RUN+="/lib/udev/iwlwifi-led.sh"
  443.  
  444. ::::::::::::::
  445. /etc/modprobe.d/00-system.conf
  446. ::::::::::::::
  447. #
  448. # Copyright (c) 1996-2002 SuSE Linux AG Nuernberg, Germany.
  449. # All rights reserved.
  450. #
  451. # Author: Hubert Mantel <mantel@suse.de>, 1996-2002
  452. #
  453. # Configuration file for loadable modules; used by modprobe
  454. #
  455. # Please don't edit this file. Place your settings into
  456. # /etc/modprobe.d/99-local.conf instead.
  457. #
  458. #
  459. ########################################################################
  460. # If you want to use the new autofs4
  461. ########################################################################
  462.  
  463. alias autofs autofs4
  464.  
  465. ########################################################################
  466. # block dev aliases
  467. ########################################################################
  468.  
  469. # network block device
  470. alias block-major-45 pd
  471. alias block-major-47 pf
  472.  
  473. ########################################################################
  474. # char dev aliases
  475. ########################################################################
  476.  
  477. install char-major-10-134 /bin/true
  478. install char-major-10-135 /bin/true
  479. alias char-major-10-181 toshiba
  480. alias char-major-10-250 sonypi
  481. options sonypi minor=250
  482.  
  483. ########################################################################
  484. # ISDN
  485. ########################################################################
  486. install b1pci /bin/true
  487. install c4 /bin/true
  488. install sc /bin/true
  489. install hisax /bin/true
  490. install hisax_fcpcipnp /bin/true
  491. install hfc4s8s_l1 /bin/true
  492. install hysdn /bin/true
  493. install pcbit /bin/true
  494. install t1pci /bin/true
  495. install divas /bin/true
  496.  
  497. # NFS
  498. alias nfs4 nfs
  499.  
  500. # rpc_pipefs
  501. install rpc_pipefs /sbin/modprobe sunrpc
  502.  
  503. # we don't want ide-scsi handle CD drives (bnc#242009)
  504. options ide-scsi idescsi_nocd=1
  505.  
  506. # pata_acpi is useful for certain limited cases but it tries to attach any
  507. # controller with IDE class code causing more harm than good if loaded by
  508. # default. Blacklist it so that it can be used selectively.
  509. blacklist pata_acpi
  510.  
  511. # "Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not
  512. # after" (bnc#449853)
  513. # mkinitrd hints:
  514. # SUSE INITRD: uhci-hcd REQUIRES ehci-hcd
  515. # SUSE INITRD: ohci-hcd REQUIRES ehci-hcd
  516. install uhci-hcd /sbin/modprobe ehci-hcd; /sbin/modprobe --ignore-install uhci-hcd
  517. install ohci-hcd /sbin/modprobe ehci-hcd; /sbin/modprobe --ignore-install ohci-hcd
  518.  
  519. # libcrc32c calls crypto_alloc_shash("crc32c", 0, 0), which results in a
  520. # request_module("crc32c"), but that dependency is not seen by modpost/depmod
  521. # https://bugzilla.novell.com/552443
  522. # SUSE INITRD: libcrc32c REQUIRES crc32c
  523.  
  524.  
  525. # end of common part for modprobe.conf
  526. # begin of x86_64 part for modprobe.conf
  527.  
  528. alias parport_lowlevel parport_pc
  529. # disable DMA for parallel port (bnc#180390)
  530. options parport_pc dma=none
  531. # options parport_pc io=0x378 irq=none
  532. # If you have multiple parallel ports, specify them this way:
  533. # options parport_pc io=0x378,0x278 irq=none,none
  534.  
  535. # ata_piix can't handle ICH6 in AHCI mode
  536. install ata_piix /sbin/modprobe ahci 2>&1 |:; /sbin/modprobe --ignore-install ata_piix
  537.  
  538. # QEMU/KVM can handle ACPI Hotplugging
  539. alias dmi:bvnQEMU:bvrQEMU:* acpiphp
  540.  
  541. # end of x86_64 part for modprobe.conf
  542.  
  543. ::::::::::::::
  544. /etc/modprobe.d/10-unsupported-modules.conf
  545. ::::::::::::::
  546. #
  547. # Every kernel module has a flag 'supported'. If this flag is not set loading
  548. # this module will taint your kernel. You will not get much help with a kernel
  549. # problem if your kernel is marked as tainted. In this case you firstly have
  550. # to avoid loading of unsupported modules.
  551. #
  552. # Setting allow_unsupported_modules 1 enables loading of unsupported modules
  553. # by modprobe, setting allow_unsupported_modules 0 disables it. This can
  554. # be overriden using the --allow-unsupported-modules commandline switch.
  555. allow_unsupported_modules 1
  556. ::::::::::::::
  557. /etc/modprobe.d/50-blacklist.conf
  558. ::::::::::::::
  559. #
  560. # $Id$
  561. #
  562. # Listing a module here prevents modprobe from loading it via modalias (only
  563. # aliases from /lib/modules/*/modules.alias). You may still load it explicitely.
  564. # We blacklist some modules becaus they may harm on certain devices or they
  565. # prevent other modules from grabbing the device.
  566. #
  567. # Syntax: blacklist <driver name>
  568. # See 'man modprobe'.
  569. #
  570.  
  571. # uhci ... usb-uhci handles the same pci class
  572. blacklist uhci
  573. # usbcore ... module is loaded implicitly, ignore it otherwise
  574. blacklist usbcore
  575.  
  576. # tulip ... de4x5, xircom_tulip_cb, dmfe (...) handle same devices
  577. blacklist de4x5
  578. # At least 2.4.3 and later xircom_tulip doesn't have that conflict
  579. # xircom_tulip_cb
  580. blacklist dmfe
  581.  
  582. # list all framebuffer drivers, some of them tend to crash during boot
  583. # they are either compiled into the kernel, or vesafb is active
  584. # X works fine without them, rcfbset can load them if really required
  585. # sed -e '/\/drivers\/video\/.*\.\(o\|ko\)$/{s@^.*/@@;s@\..*$@@;p};d'
  586. blacklist aty128fb
  587. blacklist atyfb
  588. blacklist clgenfb
  589. blacklist cyber2000fb
  590. # cyblafb, bug 466280
  591. blacklist cyblafb
  592. blacklist encode-big5
  593. blacklist encode-gb
  594. blacklist encode-gbk
  595. blacklist encode-jis
  596. blacklist encode-kscm
  597. blacklist fbcon-afb
  598. blacklist fbcon-cfb2
  599. blacklist fbcon-cfb4
  600. blacklist fbcon-hga
  601. blacklist fbcon-ilbm
  602. blacklist fbcon-iplan2p2
  603. blacklist fbcon-iplan2p4
  604. blacklist fbcon-iplan2p8
  605. blacklist fbcon-mac
  606. blacklist fbcon-mfb
  607. blacklist fbcon-vga
  608. blacklist fbcon-vga-planes
  609. blacklist fbgen
  610. blacklist g450_pll
  611. blacklist hgafb
  612. blacklist i2c-matroxfb
  613. blacklist i810fb
  614. blacklist intelfbdrv
  615. blacklist intelfbhw
  616. blacklist matroxfb_accel
  617. blacklist matroxfb_base
  618. blacklist matroxfb_crtc2
  619. blacklist matroxfb_DAC1064
  620. blacklist matroxfb_g450
  621. blacklist matroxfb_maven
  622. blacklist matroxfb_misc
  623. blacklist matroxfb_proc
  624. blacklist matroxfb_Ti3026
  625. blacklist mdacon
  626. blacklist neofb
  627. blacklist pm2fb
  628. blacklist pm3fb
  629. blacklist radeonfb
  630. blacklist rivafb
  631. blacklist sisfb
  632. blacklist sstfb
  633. blacklist tdfxfb
  634. blacklist tridentfb
  635. blacklist unikey
  636. blacklist vga16fb
  637. blacklist vgastate
  638. blacklist vmware
  639. # for kyrofb see Bug 35810
  640. blacklist kyrofb
  641. # list was not complete (bug 106715)
  642. blacklist arcfb
  643. blacklist backlight
  644. blacklist lcd
  645. blacklist cirrusfb
  646. blacklist gx1fb
  647. blacklist intelfb
  648. blacklist macmodes
  649. blacklist nvidiafb
  650. blacklist s1d13xxxfb
  651. blacklist savagefb
  652. # additional modules since SLE11, bug 468964
  653. blacklist arkfb
  654. blacklist carminefb
  655. blacklist gxfb
  656. blacklist hecubafb
  657. blacklist lxfb
  658. blacklist s3fb
  659. blacklist sm501fb
  660. blacklist viafb
  661. blacklist vmlfb
  662. blacklist vt8623fb
  663.  
  664. # ISDN modules are load from /lib/udev/isdn.sh
  665. blacklist fcusb
  666. blacklist fcusb2
  667. blacklist fxusb
  668. blacklist fxusb_CZ
  669. blacklist fcdslusb
  670. blacklist fcdslusb2
  671. blacklist fcdslusba
  672. blacklist fcdslslusb
  673. blacklist fcdslslusb2
  674. blacklist e2220pc
  675. blacklist e5520pc
  676. blacklist bfusb
  677. blacklist b1isa
  678. blacklist b1pci
  679. blacklist b1pcmcia
  680. blacklist c4
  681. blacklist t1isa
  682. blacklist t1pci
  683. blacklist divas
  684. blacklist act2000
  685. blacklist hfc_usb
  686. blacklist hisax
  687. blacklist hisax_fcpcipnp
  688. blacklist hisax_st5481
  689. blacklist hysdn
  690. blacklist icn
  691. blacklist pcbit
  692. blacklist sc
  693. blacklist tpam
  694. blacklist fcpci
  695. blacklist fcclassic
  696. blacklist fcdsl
  697. blacklist fcdsl2
  698. # mISDN modules
  699. blacklist hfcsusb
  700. blacklist hfcpci
  701. blacklist hfcmulti
  702. blacklist l1oip
  703. blacklist mISDN_dsp
  704. blacklist mISDN_core
  705.  
  706. # OSS PCI sound modules
  707. blacklist ad1889
  708. blacklist ali5455
  709. blacklist btaudio
  710. blacklist cmpci
  711. blacklist cs4281
  712. blacklist emu10k1
  713. blacklist es1370
  714. blacklist es1371
  715. blacklist esssolo1
  716. blacklist forte
  717. blacklist i810_audio
  718. blacklist maestro
  719. blacklist maestro3
  720. blacklist nm256_audio
  721. blacklist opl3sa2 # Bug 219758
  722. blacklist rme96xx
  723. blacklist sonicvibes
  724. blacklist trident
  725. blacklist via82cxxx_audio
  726. blacklist ymfpci
  727.  
  728. # If you really need firewire direct networking, then remove this entry
  729. blacklist eth1394
  730.  
  731. # this is a debugging module which should only be loaded manually
  732. blacklist evbug
  733.  
  734. # These mtd drivers should be loaded manually.
  735. blacklist scb2_flash
  736. blacklist ich2rom
  737. blacklist pci
  738. blacklist l440gx
  739. blacklist amd76xrom
  740.  
  741. # job of rcdvb
  742. blacklist snd_bt87x
  743. blacklist snd-bt87x
  744.  
  745. # HP Touch Screen usb input driver. breaks all other mouse input devices
  746. blacklist tsdev
  747.  
  748. # https://bugzilla.novell.com/show_bug.cgi?id=115132
  749. blacklist slamr
  750. blacklist slusb
  751.  
  752. # This module seems to be good for nothing. See bug 129301.
  753. blacklist dpt_i2o
  754.  
  755. # This driver is obsolete and should never be loaded as default.
  756. # See https://bugzilla.novell.com/show_bug.cgi?id=146728
  757. blacklist eepro100
  758.  
  759. # This driver is obsolete and should never be loaded as default.
  760. # See https://bugzilla.novell.com/show_bug.cgi?id=146930
  761. blacklist sk98lin
  762.  
  763. # This driver is rarely needed and causes trouble when scanning devices.
  764. # See: https://bugzilla.novell.com/show_bug.cgi?id=144623
  765. blacklist stradis
  766.  
  767. # These devices have bt878 chip without PCI Subsystem ID. Without that info bttv
  768. # does not know how to treat them properly. Therefore we disable autoloading of
  769. # modules for these devices.
  770. # See https://bugzilla.novell.com/show_bug.cgi?id=149588
  771. # To enable your device create a hardware configuration file for your device.
  772. # See man hwup for details.
  773. # You will probably have to specify an option to identify your card. Have a
  774. # look in /usr/src/linux/Documentation/video4linux/CARDLIST.bttv.
  775. alias pci:v0000109Ed0000036Esv00000000sd00000000bc04sc00i00 bttv_skip_it
  776. alias pci:v0000109Ed00000878sv00000000sd00000000bc04sc80i00 bttv_skip_it
  777. install bttv_skip_it /bin/echo "module alias skipped (bt878 chip without PCI Subsystem ID)"
  778.  
  779. # For some bridges both intel-agp and i82875p_edac are loaded. If i82875p_edac
  780. # is loaded first it will grab the device. Then intel-agp doesn't work.
  781. # Therefore we disable automatic loading of 82875p_edac. (Bug 213840)
  782. blacklist i82875p_edac
  783. #
  784. # Blacklist the IBM s390 module for I/O dynamic configuration support
  785. # Bug bnc#478601
  786. blacklist chsc_sch
  787. ::::::::::::::
  788. /etc/modprobe.d/50-bluetooth.conf
  789. ::::::::::::::
  790. # use "reset=1" as default, since it should be safe for recent devices and
  791. # solves all kind of problems.
  792. options btusb reset=1
  793. ::::::::::::::
  794. /etc/modprobe.d/50-ipw2200.conf
  795. ::::::::::::::
  796. options ipw2200 hwcrypto=0 led=1
  797. ::::::::::::::
  798. /etc/modprobe.d/50-iwagn.conf
  799. ::::::::::::::
  800. options iwlagn 11n_disable=0
  801.  
  802. ::::::::::::::
  803. /etc/modprobe.d/50-iwl3945.conf
  804. ::::::::::::::
  805. options iwl3945 disable_hw_scan=1
  806. ::::::::::::::
  807. /etc/modprobe.d/50-nvidia.conf
  808. ::::::::::::::
  809. options nvidia NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=33 NVreg_DeviceFileMode=0660
  810. ::::::::::::::
  811. /etc/modprobe.d/50-prism54.conf
  812. ::::::::::::::
  813. blacklist prism54
  814. ::::::::::::::
  815. /etc/modprobe.d/50-thinkpad_acpi.conf
  816. ::::::::::::::
  817. #
  818. # IBM/Lenovo ThinkPad ACPI driver options
  819. #
  820. # A detailed description of the parameters for the ThinkPad ACPI driver can be found
  821. # in /usr/src/linux/Documentation/laptops/thinkpad-acpi.txt which is part of the package
  822. # 'kernel-source'.
  823. #
  824. # If you encounter problems with the hotkey mask please file a bug on
  825. # http://bugzilla.novell.com/
  826. #
  827.  
  828. options thinkpad_acpi experimental=1 hotkey=0xffffff
  829. ::::::::::::::
  830. /etc/modprobe.d/50-tv.conf
  831. ::::::::::::::
  832. ::::::::::::::
  833. /etc/modprobe.d/99-local.conf
  834. ::::::::::::::
  835. #
  836. # please add local extensions to this file
  837. #
  838. ::::::::::::::
  839. /etc/modprobe.d/xen_pvdrivers.conf
  840. ::::::::::::::
  841. # Install the paravirtualized drivers
  842. install libata /sbin/modprobe xen-vbd 2>&1 |:; /sbin/modprobe --ignore-install libata
  843.  
  844. install 8139cp /sbin/modprobe xen-vnif 2>&1 |:; /sbin/modprobe --ignore-install 8139cp
  845.  
  846. install 8139too /sbin/modprobe xen-vnif 2>&1 |:; /sbin/modprobe --ignore-install 8139too
  847.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement