Posted 16 January 2013 - 05:54 AM
os.pullEvent("disk") should only fire when a disk is inserted, and this is usually true except in the following case.
if you connect a monitor, and then use the monitor program in the following way:
> monitor top programname
os.pullEvent("disk") now fires when a disk is ejected as well.
if you connect a monitor, and then use the monitor program in the following way:
> monitor top programname
os.pullEvent("disk") now fires when a disk is ejected as well.