Frankly I'm not accustomed to all those magical devices in kernel 2.6. Slackware 12.1 is my first system with such kernel. Kernel prepares all devices during boot procedures. Almost all of them have the same date and time of creation. I don't know if I can put in /dev directory my own permanent links. Of course I can put there anything but I don't know if it's a proper way to handle 2.6 kernel's devices.
To manage with both T40 (/dev/dvd) and T60 (/dev/dvd1) I wrote simple script named dvd...
dvd:
Code:
#!/bin/sh
echo "dvd [title slang alang]"
if [ -e /dev/dvd ]
then
DVD=/dev/dvd
elif [ -e /dev/dvd1 ]
then
DVD=/dev/dvd1
fi
if [ "$DVD" == "" ]
then
echo "There is no /dev/dvd nor /dev/dvd1 device..."
exit
fi
if [ "$1" == "" ]
then
mplayer -dvd-device $DVD -dvd-speed 1 dvd://1
elif [ "$2" == "" ]
then
mplayer -dvd-device $DVD -dvd-speed 1 dvd://$1
elif [ "$3" == "" ]
then
mplayer -slang $2 -dvd-device $DVD -dvd-speed 1 dvd://$1
elif [ "$4" == "" ]
then
mplayer -alang $3 -slang $2 -dvd-device $DVD -dvd-speed 1 dvd://$1
fi
To play movie I run the command dvd. To play third title from DVD with English subtitles and French audio language I use the command dvd 3 en fr. On most DVDs movie is the first title but on some it's the second, the third, etc. title.