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

more cdrom symlinks



what about this script and udev rules to get more cdrom symlinks?

$ ll /dev/cd* /dev/dvd*
lrwxrwxrwx  1 root root 3  1. Okt 16:18 /dev/cdrom -> hdc
lrwxrwxrwx  1 root root 4  1. Okt 17:52 /dev/cdrom1 -> scd0
lrwxrwxrwx  1 root root 3  1. Okt 16:18 /dev/cdwriter -> hdc
lrwxrwxrwx  1 root root 4  1. Okt 17:52 /dev/cdwriter1 -> scd0
lrwxrwxrwx  1 root root 3  1. Okt 16:18 /dev/dvd -> hdc
lrwxrwxrwx  1 root root 3  1. Okt 16:18 /dev/dvdwriter -> hdc

Attachment: test-cdrom.sh
Description: Bourne shell script

KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="sr*", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k DVD", SYMLINK="dvd%e"
KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="sr*", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k CD-R", SYMLINK="cdwriter%e"
KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"
KERNEL="sr*", PROGRAM="/etc/udev/scripts/test-cdrom.sh %k DVD-R", SYMLINK="dvdwriter%e"




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