rm /dev/dvd; ln -s /dev/hdd /dev/dvd has no effect after rebooting.
Kernel 2.6.21.5, Slackware 12.0
Hi: Because mplayer looks for /dev/dvd and Code:
lrwxrwxrwx 1 root root 8 2007-01-24 07:35 /dev/dvd -> /dev/hdc Code:
$ rm /dev/dvd Code:
lrwxrwxrwx 1 root root 8 2007-01-24 07:35 /dev/dvd -> /dev/hdd |
couldn't you just add:
Code:
rm /dev/dvd Code:
chmod +x /etc/rc.d/rc.local |
Thanks for the feedback. I did what you said. As I already have other stuff in /etc/rc.d/rc.local, and it always gets executed, I have no doubt this will also execute in the next reboot.
If I ls -s a regular file, the link stays there until I explicitly remove it. But /dev/dvd is not a regular file. May be this the reason why it reappears? |
You may need to read this http://linux.die.net/man/8/udev
|
|
All times are GMT -5. The time now is 03:06 PM. |