summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.disable_hdd_apm3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.disable_hdd_apm b/etc/rc.disable_hdd_apm
index 58f3734..e9b3ba5 100755
--- a/etc/rc.disable_hdd_apm
+++ b/etc/rc.disable_hdd_apm
@@ -2,6 +2,9 @@
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
OpenPOWER on IntegriCloud