udev_rules_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 


I have written one udev rule in the file 10-local.rules for my driver and placed in /etc/udev/rules.d/ 



I reloaded the udevcontrol command and even rebooted also 

But My module is not getting inserted, instead I saw error message in /var/log/messages as    below

udev_rules_init: could not read '/etc/udev/rules.d/10-local.rules': No such file or directory

below is my udev rule 

BUS!="usb", ACTION!="add", GOTO="test_add_end"
BUS=="usb", SYSFS{idVendor}=="xxxx", SYSFS{idProduct}=="xxxx", ACTION=="add", RUN+="/sbin/insmod /lib/modules/2.6.18-92.el5.1/kernel/drivers/usb/input/testpedal.ko"
LABEL="test_add_end"

KERNEL=="event*", SYSFS{idVendor}=="ffff", SYSFS{idProduct}=="0000", \
  ACTION=="add", NAME="input/%k", SYMLINK+="test_pedal", OPTIONS="remove_symlinks"

BUS!="usb", ACTION!="remove", GOTO="test_remove_end"
BUS=="usb", SYSFS{idVendor}=="ffff", SYSFS{idProduct}=="0000", \
  ACTION=="remove", RUN+="/sbin/rmmod  testpedal"

LABEL="test_remove_end"

am not getting what exactly happening, but able read that file properless with less command

please let me know if am doing wrong.

Thanks & Regards
Kumar 




      
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux