summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-xshutdownasap.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 384425d..8cf3210 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -100,7 +100,8 @@ do
fi
errors=$(
- find /sys/devices/virtual/block/ \
+ [ -d /sys/devices/virtual/block/ ] \
+ && find /sys/devices/virtual/block/ \
-name 'array_state' \
-exec grep -HvxF 'clean' {} + \
, \