Re: Udev and hotplug problem

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

 



On Wed, Oct 22, 2008 at 11:33,  <amrutkar@xxxxxxxxxxxxx> wrote:
> I am a student in Indian Institute of Technology Bombay,India
>
> I am facing a Problem regarding udev rules
> below are the rules written by me..
>
> but they in suse version:
> 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 i686 i386 GNU/Linux
>
> but not on fedora linux..
>
> i will be thankful if u guide me regarding this problem..
>
> MY code is as follows....
>
>
> # IIT Bombay TMS320VC33 tiny board using
> # the TUSB3210 USB peripheral controller.
> # Hotplug device handling scripts for udev.
>
> SUBSYSTEM=="usb", \
> SYSFS{idVendor}=="0451"
> SYSFS{idProduct}=="2136", \
> # RUN="/bin/sh -c '/usr/local/iitbusb/bl_ti_2136
> /usr/local/iitbusb/tfirm.bin'"
> RUN="/bin/sh -c '/usr/local/iitbusb/bl_ti_2136
> /usr/local/iitbusb/bare1.bin /usr/local/iitbusb/bare2.bin'"

You have a comment in the middle of line? That looks not like it could work.

> SUBSYSTEM=="usb", \
> SYSFS{idVendor}=="0451", \
> SYSFS{idProduct}=="3210", \
> SYMLINK="usbvc33_1", \
> RUN="/bin/sh -c 'chmod 0666 /dev/usbvc33_1'"
>
> SUBSYSTEM=="usb", \
> SYSFS{idVendor}=="0451", \
> SYSFS{idProduct}=="3211", \
> SYMLINK="usbvc33_2", \
> RUN="/bin/sh -c 'chmod 0666 /dev/usbvc33_2'"

What's that chmod thing? We have MODE= for that. Symlinks do not have
permissions.

Also:
Use ATTR, you do not want to match parent devices.
Use SYMLINK+= to not drop earlier symlinks.
Use RUN+= to not drop earlier RUN+= keys.

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

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux