"How do I check if a device is mounted?"
Use the mount command without any parameters to give you a list of all mounted devices and search the output using grep:
mount | grep (grep parameters)
if test $? -eq 0;
then
"How do I eject a cd?"
Use the eject command.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites