summaryrefslogtreecommitdiffstats
path: root/meta/packages/udev/udev-124
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-07-24 17:00:15 +0000
committerRichard Purdie <richard@openedhand.com>2008-07-24 17:00:15 +0000
commitf9651fac68352c9cfa6c616ae50f711c32e7bf32 (patch)
tree0fb8142f6c6a16c1c2451686d7ab149b3145512a /meta/packages/udev/udev-124
parentffc2de5a4ec8e26b0d666bcb4d1b552c8b18ec2b (diff)
downloadpoky-f9651fac68352c9cfa6c616ae50f711c32e7bf32.tar.gz
udev: Sync the rules with the versions from a more recent udev, optimise the boot process slightly by skipping boring ttys earlier
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4942 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/udev/udev-124')
-rw-r--r--meta/packages/udev/udev-124/permissions.rules62
-rw-r--r--meta/packages/udev/udev-124/run.rules14
-rw-r--r--meta/packages/udev/udev-124/udev.rules37
3 files changed, 84 insertions, 29 deletions
diff --git a/meta/packages/udev/udev-124/permissions.rules b/meta/packages/udev/udev-124/permissions.rules
index 99e03b1036..205b733292 100644
--- a/meta/packages/udev/udev-124/permissions.rules
+++ b/meta/packages/udev/udev-124/permissions.rules
@@ -1,38 +1,56 @@
1ACTION!="add", GOTO="permissions_end" 1ACTION!="add", GOTO="permissions_end"
2 2
3# workarounds needed to synchronize with sysfs 3# workarounds needed to synchronize with sysfs
4DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" 4# only needed for kernels < v2.6.18-rc1
5SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt" 5ENV{PHYSDEVPATH}!="?*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
6SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*", WAIT_FOR_SYSFS="ioerr_cnt"
6# only needed for kernels < 2.6.16 7# only needed for kernels < 2.6.16
7SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" 8SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
8# only needed for kernels < 2.6.17 9# only needed for kernels < 2.6.17
9SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver" 10SUBSYSTEM=="net", ENV{DRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"
11
12# devices needed to load the drivers providing them
13KERNEL=="tun", OPTIONS+="ignore_remove"
14KERNEL=="ppp", OPTIONS+="ignore_remove"
15KERNEL=="loop[0-9]*", OPTIONS+="ignore_remove"
10 16
11# default permissions for block devices 17# default permissions for block devices
12SUBSYSTEM=="block", GROUP="disk" 18SUBSYSTEM=="block", GROUP="disk"
13SUBSYSTEM=="block", SYSFS{removable}=="1", GROUP="floppy" 19# the aacraid driver is broken and reports that disks removable (see #404927)
20SUBSYSTEM=="block", ATTRS{removable}=="1", \
21 DRIVERS!="aacraid", GROUP="floppy"
22# all block devices on these buses are "removable"
23SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy"
14 24
15# IDE devices 25# IDE devices
16BUS=="ide", KERNEL=="hd[a-z]|pcd[0-9]*", DRIVER=="ide-cdrom|pcd", \ 26KERNEL=="hd[a-z]|pcd[0-9]*", DRIVERS=="ide-cdrom|pcd", \
17 IMPORT{program}="cdrom_id --export $tempnode" 27 IMPORT{program}="cdrom_id --export $tempnode"
18ENV{ID_CDROM}=="?*", GROUP="cdrom" 28ENV{ID_CDROM}=="?*", GROUP="cdrom"
19BUS=="ide", KERNEL=="ht[0-9]*", GROUP="tape" 29KERNEL=="ht[0-9]*", GROUP="tape"
20BUS=="ide", KERNEL=="nht[0-9]*", GROUP="tape" 30KERNEL=="nht[0-9]*", GROUP="tape"
21 31
22# SCSI devices 32# SCSI devices
23BUS=="scsi", SYSFS{type}=="1", GROUP="tape" 33KERNEL=="sr[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
24BUS=="scsi", SYSFS{type}=="5", GROUP="cdrom" 34SUBSYSTEMS=="scsi", ATTRS{type}=="1", GROUP="tape"
35SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="HP", GROUP="scanner"
36SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="Epson", GROUP="scanner"
37SUBSYSTEMS=="scsi", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", GROUP="scanner"
38SUBSYSTEMS=="scsi", ATTRS{type}=="4", GROUP="cdrom"
39SUBSYSTEMS=="scsi", ATTRS{type}=="5", GROUP="cdrom"
40SUBSYSTEMS=="scsi", ATTRS{type}=="6", GROUP="scanner"
41SUBSYSTEMS=="scsi", ATTRS{type}=="8", GROUP="tape"
25 42
26# USB devices 43# USB devices
27BUS=="usb", KERNEL=="legousbtower*", MODE="0666" 44KERNEL=="legousbtower*", MODE="0666"
28BUS=="usb", KERNEL=="lp[0-9]*", GROUP="lp" 45KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb", GROUP="lp"
29 46
30# usbfs-like devices 47# usbfs-like devices
31SUBSYSTEM=="usb_device", MODE="0664" 48SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
49 MODE="0664"
32 50
33# iRiver music players 51# iRiver music players
34SUBSYSTEM=="usb_device", GROUP="plugdev", \ 52SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="plugdev", \
35 SYSFS{idVendor}=="4102", SYSFS{idProduct}=="10[01][135789]" 53 ATTRS{idVendor}=="4102", ATTRS{idProduct}=="10[01][135789]"
36 54
37# serial devices 55# serial devices
38SUBSYSTEM=="tty", GROUP="dialout" 56SUBSYSTEM=="tty", GROUP="dialout"
@@ -68,15 +86,26 @@ KERNEL=="inotify", MODE="0666"
68KERNEL=="sgi_fetchop", MODE="0666" 86KERNEL=="sgi_fetchop", MODE="0666"
69KERNEL=="sonypi", MODE="0666" 87KERNEL=="sonypi", MODE="0666"
70KERNEL=="agpgart", GROUP="video" 88KERNEL=="agpgart", GROUP="video"
71KERNEL=="rtc", GROUP="audio" 89KERNEL=="nvram", GROUP="nvram"
90KERNEL=="rtc|rtc[0-9]*", GROUP="audio"
91KERNEL=="tpm*", MODE="0600", OWNER="tss", GROUP="tss"
92KERNEL=="fuse", GROUP="fuse"
93KERNEL=="kqemu", MODE="0666"
94KERNEL=="kvm", GROUP="kvm"
95KERNEL=="tun", MODE="0666",
72 96
73KERNEL=="cdemu[0-9]*", GROUP="cdrom" 97KERNEL=="cdemu[0-9]*", GROUP="cdrom"
74KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" 98KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
75KERNEL=="pktcdvd", MODE="0644" 99KERNEL=="pktcdvd", MODE="0644"
76 100
101KERNEL=="uverbs*", GROUP="rdma"
102KERNEL=="ucm*", GROUP="rdma"
103KERNEL=="rdma_ucm", GROUP="rdma"
104
77# printers and parallel devices 105# printers and parallel devices
78SUBSYSTEM=="printer", GROUP="lp" 106SUBSYSTEM=="printer", GROUP="lp"
79SUBSYSTEM=="ppdev", GROUP="lp" 107SUBSYSTEM=="ppdev", GROUP="lp"
108KERNEL=="irlpt*", GROUP="lp"
80KERNEL=="pt[0-9]*", GROUP="tape" 109KERNEL=="pt[0-9]*", GROUP="tape"
81KERNEL=="pht[0-9]*", GROUP="tape" 110KERNEL=="pht[0-9]*", GROUP="tape"
82 111
@@ -89,9 +118,10 @@ KERNEL=="dv1394*", GROUP="video"
89KERNEL=="video1394*", GROUP="video" 118KERNEL=="video1394*", GROUP="video"
90 119
91# input devices 120# input devices
92KERNEL=="event[0-9]*", SYSFS{name}=="*dvb*|*DVB*|* IR *" \ 121KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \
93 MODE="0664", GROUP="video" 122 MODE="0664", GROUP="video"
94KERNEL=="js[0-9]*", MODE="0664" 123KERNEL=="js[0-9]*", MODE="0664"
124KERNEL=="lirc[0-9]*", GROUP="video"
95 125
96# AOE character devices 126# AOE character devices
97SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" 127SUBSYSTEM=="aoe", MODE="0220", GROUP="disk"
diff --git a/meta/packages/udev/udev-124/run.rules b/meta/packages/udev/udev-124/run.rules
new file mode 100644
index 0000000000..75d71375bb
--- /dev/null
+++ b/meta/packages/udev/udev-124/run.rules
@@ -0,0 +1,14 @@
1# debugging monitor
2RUN+="socket:/org/kernel/udev/monitor"
3
4# run a command on remove events
5ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
6
7# ignore the events generated by virtual consoles
8KERNEL=="ptmx", OPTIONS+="last_rule"
9KERNEL=="console", OPTIONS+="last_rule"
10KERNEL=="tty" , OPTIONS+="last_rule"
11KERNEL=="tty[0-9]*", OPTIONS+="last_rule"
12KERNEL=="pty*", OPTIONS+="last_rule"
13SUBSYSTEM=="vc", OPTIONS+="last_rule"
14
diff --git a/meta/packages/udev/udev-124/udev.rules b/meta/packages/udev/udev-124/udev.rules
index 4d29acac0c..443315ea53 100644
--- a/meta/packages/udev/udev-124/udev.rules
+++ b/meta/packages/udev/udev-124/udev.rules
@@ -13,33 +13,44 @@
13# %% the '%' char itself 13# %% the '%' char itself
14# 14#
15 15
16# workaround for devices which do not report media changes
17SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \
18 ENV{ID_MODEL}=="IOMEGA_ZIP*", NAME="%k", OPTIONS+="all_partitions"
19SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \
20 OPTIONS+="all_partitions"
21
16# SCSI devices 22# SCSI devices
17BUS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" 23SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n"
18 24
19# USB devices 25# USB devices
20BUS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" 26SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k"
21BUS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" 27SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k"
22BUS=="usb", KERNEL=="dabusb*", NAME="usb/%k" 28SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k"
23BUS=="usb", KERNEL=="hiddev*", NAME="usb/%k" 29SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k"
24BUS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" 30SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k"
25BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" 31SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k"
26BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \ 32SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \
33 ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \
27 SYMLINK+="pilot" 34 SYMLINK+="pilot"
28 35
29# usbfs-like devices 36# usbfs-like devices
30SUBSYSTEM=="usb_device", \ 37SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \
31 PROGRAM="/bin/sh -c 'export X=%k; export X=$${X#usbdev}; export B=$${X%%%%.*}; export D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c" 38 NAME="%c"
39SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}"
32 40
33# serial devices 41# serial devices
34KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" 42KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20"
35KERNEL=="capi[0-9]*", NAME="capi/%n" 43KERNEL=="capi[0-9]*", NAME="capi/%n"
36 44
37# video devices 45# video devices
46KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \
47 NAME="%c"
38KERNEL=="card[0-9]*", NAME="dri/%k" 48KERNEL=="card[0-9]*", NAME="dri/%k"
39 49
40# misc devices 50# misc devices
41KERNEL=="hw_random", NAME="hwrng" 51KERNEL=="hw_random", NAME="hwrng"
42KERNEL=="tun", NAME="net/%k" 52KERNEL=="tun", NAME="net/%k"
53KERNEL=="evtchn", NAME="xen/%k"
43 54
44KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" 55KERNEL=="cdemu[0-9]*", NAME="cdemu/%n"
45KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" 56KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n"
@@ -52,9 +63,8 @@ KERNEL=="microcode", NAME="cpu/microcode"
52KERNEL=="umad*", NAME="infiniband/%k" 63KERNEL=="umad*", NAME="infiniband/%k"
53KERNEL=="issm*", NAME="infiniband/%k" 64KERNEL=="issm*", NAME="infiniband/%k"
54KERNEL=="uverbs*", NAME="infiniband/%k" 65KERNEL=="uverbs*", NAME="infiniband/%k"
55KERNEL=="ucm", NAME="infiniband/%k" 66KERNEL=="ucm*", NAME="infiniband/%k"
56 67KERNEL=="rdma_ucm", NAME="infiniband/%k"
57KERNEL=="buzzer", NAME="misc/buzzer"
58 68
59# ALSA devices 69# ALSA devices
60KERNEL=="controlC[0-9]*", NAME="snd/%k" 70KERNEL=="controlC[0-9]*", NAME="snd/%k"
@@ -87,6 +97,7 @@ KERNEL=="zap[0-9]*", NAME="zap/%n"
87SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" 97SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k"
88SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" 98SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k"
89SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" 99SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k"
100SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k"
90 101
91# device mapper creates its own device nodes, so ignore these 102# device mapper creates its own device nodes, so ignore these
92KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" 103KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device"