linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rules and RUN key
@ 2005-11-22 23:01 Mangus
  2005-11-22 23:18 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mangus @ 2005-11-22 23:01 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]

Hi all, I'm trying to study the RUN key of udev rules, but I really don't 
understand why this rule doesn't work..

BUS=="usb", SYSFS{product}="Sony DSC", KERNEL="sda1", ACTION=="add", 
SYMLINK+="digitalcamera", RUN="/opt/kde/bin/digikam"

the symlink 'digitalcamera is correctly done in /dev and I can easily mount it
but the RUN key seems not executed.
Does the RUN command has to be executed when a rule is matched?
what I'm missing or doing wrong??

root@saturno:~# udevtest /sys/block/sda/sda1 usb
main: looking at device '/block/sda/sda1' from subsystem 'usb'
add_to_rules: error parsing SYSFS attribute in 'BUS'
main: opened class_dev->name='sda1'
udev_rules_get_name: add symlink 'digitalcamera'
udev_rules_get_name: reset run list
udev_rules_get_name: rule applied, 'sda1' becomes 'sda1'
create_node: creating device node '/dev/sda1', major = '8', minor = '1', mode 
= '0660', uid = '0', gid = '6'
create_node: creating symlink '/dev/digitalcamera' to 'sda1'

root@saturno:~# udevmonitor
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]

UEVENT[1132699412.958174] add@/devices/pci0000:00/0000:00:03.3/usb1/1-1
UEVENT[1132699413.031376] 
add@/devices/pci0000:00/0000:00:03.3/usb1/1-1/1-1:1.0
UEVENT[1132699413.038090] add@/class/scsi_host/host3
UEVENT[1132699413.189695] add@/class/usb_device/usbdev1.5
UEVENT[1132699418.191140] 
add@/devices/pci0000:00/0000:00:03.3/usb1/1-1/1-1:1.0/host3/target3:0:0/3:0:0:0
UEVENT[1132699418.250136] add@/block/sda
UEVENT[1132699418.308443] add@/block/sda/sda1
UEVENT[1132699418.354008] add@/class/scsi_device/3:0:0:0


thanks for hints and explanations
-- 
Fede
Be cool - get Slack.
--

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-23 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-22 23:01 rules and RUN key Mangus
2005-11-22 23:18 ` Kay Sievers
2005-11-23 11:26 ` Harald Hoyer
2005-11-23 18:44 ` Mangus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).