summaryrefslogtreecommitdiffstats
path: root/etc/rc.disable_hdd_apm
blob: e9b3ba5af4aa8026d94304c6537a5f16fdc0c6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
OpenPOWER on IntegriCloud