Say I have a script
script.sh. How can I make it execute whenever a bootable medium is inserted? So lets say I stick a bootable cd into my PC, I want
script.sh to run on insertion without rebooting my machine. Similar to:
but I don't want to distinguish between IDs and I want it to affect more than USBs... CDs and Harddrives as well.
Also,if possible, I would really like to pass information about the drive/cd to the script when it is inserted... My script is supposed to create a efi boot entry based on this inserted device, so I need to pass the devices information (port location, label, etc.) to