Make sure a device actually exists before trying to act on it. Fixes #2739
Fix exec bit
Add a small script to disable APM on ATA drives if they claim to support it. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.The APM bit set will persist until the drive is power cycled, so it's necessary to run on each boot to be sure.