mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
14 lines
274 B
Bash
Executable File
14 lines
274 B
Bash
Executable File
#!/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
|