This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
ATAIDLE=/usr/local/sbin/ataidle
|
|
for i in /dev/ad?; do
|
|
if [ ! -e ${i} ]; then
|
|
continue;
|
|
fi
|
|
SUPPORTED=`${ATAIDLE} ${i} | grep "APM Supported" | awk '{print $3;}'`
|
|
if [ "${SUPPORTED}" = "yes" ] ; then
|
|
echo Disabling APM on $i
|
|
${ATAIDLE} -P 0 ${i}
|
|
fi
|
|
done
|