| |
|
|
|
|
||||||
|
||||||||||
| ||||||||||
What the script does
- Deletes all symlinked /dev entries and system mount points pertaining to CDROMs, CD-writers and DVDs on your machine. Also pulls any related entries in /etc/fstab
- Scans /proc for the devices listed above. In order, it looks for DVDs, then writers, then plain CDROMs. (Up to 2 of each) The script proceeds henceforth one device at a time.
- Creates symbolic link in /dev to the device entry -- (hda, hdd, etc. which are created by udev on boot.) This greatly simplifies later links/scripts.
- Creates the link to the script used for the device. Each script is device-specific.
- Creates the mount point for the device.
- Makes an entry in /etc/fstab for the device on the created mount point.
How to install
- Ensure that you have Xdialog and cdtool installed. (See above if you overlooked this.)
- Put cdArray and the eight other scripts into /usr/bin
- The list of scripts is:
CD-Player
CD-Player1
CD-Writer
CD-Writer1
DVD-Player
DVD-Player1
DVDasCD
DVDasCD1
cdArray
- Put the following three files into /usr/share/pixmaps
colorbox.rc
tux.xpm
open_eject.xpm
- Set the cdArray script as the last thing on system startup -- easily done on Slackware by calling the script from /etc/rc.d/rc.local.
Customizing
- If NOT using ROX-Filer, be sure to edit the device scripts.
There are 2 lines in each of the following files of the form:
rox /mnt/cdrom &
CD-Player
CD-Player1
CD-Writer
CD-Writer1
DVDasCD
DVDasCD1
- If NOT using GCD to play Audio CDs, be sure to edit the device scripts.
There is 1 line in each of the following files of the form:
gcd -d /dev/cdrom -f &
CD-Player
CD-Player1
CD-Writer
CD-Writer1
DVDasCD
DVDasCD1
- If NOT using MPlayer to play DVDs, be sure to edit the device scripts.
There is 1 line in each of the following files of the form:
mplayer dvd://1 -dvd-device /dev/dvd 2> /tmp/error.$$
DVD-Player
DVD-Player1
- If NOT using my custom Xdialog graphics, be sure to edit the device scripts. You can delete the portion I list below or substitute your own graphics.
There are 5 lines in each of the following files that contain:
--rc-file /usr/share/pixmaps/colorbox.rc --icon /usr/share/pixmaps/tux.xpm
or
--rc-file /usr/share/pixmaps/colorbox.rc --icon /usr/share/pixmaps/open_eject.xpm
CD-Player
CD-Player1
CD-Writer
CD-Writer1
DVDasCD
DVDasCD1
Downloads
Slackware Package
44k MD5SUM: c906b74ec5763978ebc1a213438cac14
cdArray-1.1-noarch-102.tgz
Source Code
41k MD5SUM: e6adabd4b1770d71b38674274b85dee5
cdArray-1.1.tar.bz2
|
|
Graphics made/edited by the Gimp
|