Hey forum,

Is there a recommended approach for a Bash script to find at runtime the device which contains the mount which contains the running script? I have a script which runs off of a removable optical media and I'd like it to eject the media when it is done, but the 'eject' command needs a device path.

~ Kip