Yes, surely a good idea.Smithy wrote:Would it be a good idea to put Musher's code before it to close any drives open though?
But something to think of:
- auto-unmount all ISO files in /mnt
- auto unmount all SFS and [2,3,4].fs files in /mnt
- Edit: not to forget to make a sync, to make sure cache is written to USB
Because you can not unmount a drive which contains an mounted ISO, SFS or save file. Do a sync first and then make sure to unmount SFS and save files first, because they could have been mounted from within a mounted ISO file.
I'm using/doing this automatically on every shut-down/reboot in my private LazY Puppy System/s.