udev and /dev/changer

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

 



The program mtx likes to use /dev/changer as the default tape changer.
In the days before udev, we would create the symlink to the relevant
scsi device. In my case:

ln -s /dev/sg14 /dev/changer

In the days of udev, such a link will not survive a reboot.
How do I get udev to create the /dev/changer symlink.

50-udev.rules already has a rule to create the /dev/tape symlink with:

KERNEL=="nst[0-9]", BUS=="scsi",        SYMLINK+="tape%e", MODE="0660"

So I could guess the pattern and try adding:

KERNEL=="sg14", BUS=="scsi",        SYMLINK+="changer", MODE="0660"

but I feel unclean. Is hacking on the /etc/udev/rules.d/50-udev.rules the
"right way" to do these things? What happens when the rules get updated.

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

norm@xxxxxxxxxxxxxxxxx            Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~norm    Fax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux