summaryrefslogtreecommitdiff
path: root/rules/packages
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-18 15:56:03 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-18 15:56:03 +0200
commit282988c4f8a85c28468e6442e86efe51dc71cc93 (patch)
treefda0a6ba62adffd8f7c4762b9694ab77e4ea563f /rules/packages
parent41dd741442ab496901c38f6cd38404bd954f1857 (diff)
move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
Diffstat (limited to 'rules/packages')
-rw-r--r--rules/packages/40-alsa.rules11
-rw-r--r--rules/packages/40-ia64.rules4
-rw-r--r--rules/packages/40-pilot-links.rules4
-rw-r--r--rules/packages/40-ppc.rules6
-rw-r--r--rules/packages/40-s390.rules4
-rw-r--r--rules/packages/40-zaptel.rules8
-rw-r--r--rules/packages/64-device-mapper.rules4
-rw-r--r--rules/packages/64-md-raid.rules22
8 files changed, 63 insertions, 0 deletions
diff --git a/rules/packages/40-alsa.rules b/rules/packages/40-alsa.rules
new file mode 100644
index 0000000000..d30a1da8fc
--- /dev/null
+++ b/rules/packages/40-alsa.rules
@@ -0,0 +1,11 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="controlC[0-9]*", NAME="snd/%k"
+KERNEL=="hwC[D0-9]*", NAME="snd/%k"
+KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k"
+KERNEL=="midiC[D0-9]*", NAME="snd/%k"
+KERNEL=="timer", NAME="snd/%k"
+KERNEL=="seq", NAME="snd/%k"
+KERNEL=="mixer0", SYMLINK+="mixer"
+KERNEL=="dsp0", SYMLINK+="dsp"
+KERNEL=="audio0", SYMLINK+="audio"
diff --git a/rules/packages/40-ia64.rules b/rules/packages/40-ia64.rules
new file mode 100644
index 0000000000..5846f88b1b
--- /dev/null
+++ b/rules/packages/40-ia64.rules
@@ -0,0 +1,4 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="sgi_*", MODE="0666"
+
diff --git a/rules/packages/40-pilot-links.rules b/rules/packages/40-pilot-links.rules
new file mode 100644
index 0000000000..1242fff102
--- /dev/null
+++ b/rules/packages/40-pilot-links.rules
@@ -0,0 +1,4 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="ttyUSB*", ATTRS{product}=="[Hh]andspring*Treo*|[Hh]andspring*Visor*|[Pp]alm*Handheld*", SYMLINK+="pilot"
+
diff --git a/rules/packages/40-ppc.rules b/rules/packages/40-ppc.rules
new file mode 100644
index 0000000000..8b62d79e0c
--- /dev/null
+++ b/rules/packages/40-ppc.rules
@@ -0,0 +1,6 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="iseries/ibmsis*", NAME="%k", GROUP="disk"
+KERNEL=="iseries/nvt*", NAME="%k", GROUP="disk"
+KERNEL=="iseries/vt*", NAME="%k", GROUP="disk"
+KERNEL=="iseries/vtty*", GROUP="uucp"
diff --git a/rules/packages/40-s390.rules b/rules/packages/40-s390.rules
new file mode 100644
index 0000000000..43035dbe60
--- /dev/null
+++ b/rules/packages/40-s390.rules
@@ -0,0 +1,4 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="z90crypt", MODE="0666"
+
diff --git a/rules/packages/40-zaptel.rules b/rules/packages/40-zaptel.rules
new file mode 100644
index 0000000000..4313a9172e
--- /dev/null
+++ b/rules/packages/40-zaptel.rules
@@ -0,0 +1,8 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="zap[0-9]*", NAME="zap/%n"
+KERNEL=="zapchannel", NAME="zap/channel"
+KERNEL=="zapctl", NAME="zap/ctl"
+KERNEL=="zappseudo", NAME="zap/pseudo"
+KERNEL=="zaptimer", NAME="zap/timer"
+
diff --git a/rules/packages/64-device-mapper.rules b/rules/packages/64-device-mapper.rules
new file mode 100644
index 0000000000..8154ef3702
--- /dev/null
+++ b/rules/packages/64-device-mapper.rules
@@ -0,0 +1,4 @@
+# do not edit this file, it will be overwritten on update
+
+KERNEL=="device-mapper", NAME="mapper/control"
+
diff --git a/rules/packages/64-md-raid.rules b/rules/packages/64-md-raid.rules
new file mode 100644
index 0000000000..d0510b3095
--- /dev/null
+++ b/rules/packages/64-md-raid.rules
@@ -0,0 +1,22 @@
+# do not edit this file, it will be overwritten on update
+
+SUBSYSTEM!="block", GOTO="md_end"
+ACTION!="add|change", GOTO="md_end"
+
+# import data from a raid member and activate it
+#ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
+# import data from a raid set
+KERNEL!="md*", GOTO="md_end"
+
+ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
+
+IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
+ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
+ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
+
+IMPORT{program}="vol_id --export $tempnode"
+OPTIONS+="link_priority=100"
+ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
+
+LABEL="md_end"