How can i get udev to make a link for me ?
I have lirc running and udev creates lirc0 in my /dev directory and i need it to be /dev/lirc .
I can create a link with ln -s lirc0 /dev/lirc and everything works fine but i want the link to be there everytime i bootup into slackware. Iv tried adding ln -s lirc0 /dev/lirc to my /etc/udev/udev.conf but that just gives me an error on bootup. Anyone have any ideas how i can achieve what im after ? |
Hi.
Not tested, but should work... Create a 10-local.rules file in /etc/udev/rules.d and in there put the line: KERNEL=="lirc0", SYMLINK+="lirc" Dave |
Quote:
Quote:
Code:
udevadm info --attribute-walk --name /dev/lirc0 |
Quote:
|
Quote:
That was my result of a google search. udevadm info --attribute-walk --name /dev/lirc0 shows this info. Code:
Udevadm info starts with the device specified by the devpath and then |
Quote:
Thank you sir , it works. |
The following should key on that specific lirc device. Honestly though, if you only have one, then the line you're using now is fine.
Code:
SUBSYSTEMS=="usb", \ |
Quote:
|
Yeah, 10-local.rules is fine. Comment out the first part you already added though (or delete it).
|
All times are GMT -5. The time now is 08:38 PM. |