From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mangus Date: Tue, 22 Nov 2005 23:01:29 +0000 Subject: rules and RUN key Message-Id: <200511230001.45163.ml@deprecated.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="nextPart13027577.CzZPn4c4uY" List-Id: To: linux-hotplug@vger.kernel.org --nextPart13027577.CzZPn4c4uY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I'm trying to study the RUN key of udev rules, but I really don't=20 understand why this rule doesn't work.. BUS=3D=3D"usb", SYSFS{product}=3D"Sony DSC", KERNEL=3D"sda1", ACTION=3D=3D"= add",=20 SYMLINK+=3D"digitalcamera", RUN=3D"/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=3D'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 =3D '8', minor =3D '1'= , mode=20 =3D '0660', uid =3D '0', gid =3D '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]=20 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]=20 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 =2D-=20 =46ede Be cool - get Slack. =2D- --nextPart13027577.CzZPn4c4uY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQBDg6NY99yrWvFA8FMRAjveAKCAyMpWANaMZB7u6Y0fjSjiTRs9igCaAuyb GWDr8T3pogv+AUQqVRsJKfo= =FtcB -----END PGP SIGNATURE----- --nextPart13027577.CzZPn4c4uY-- ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel