X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fscripts%2Fhddshutdown;h=146cc73474e57cda8622fd0665841e5390aaee19;hp=dc49a17060ab4c509f58b3ab19216c593ec5fddf;hb=d9c6f56c2ea171cbc1fa396feb30d2814b9a818d;hpb=84aed1ea54ea5e482d3e7dcd7075188062ae85b1 diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown index dc49a17060..146cc73474 100644 --- a/src/scripts/hddshutdown +++ b/src/scripts/hddshutdown @@ -22,7 +22,8 @@ # IPFire HDD Shutdown state reader # -my @devices = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; +# Also devices that cannot shutdown must be here for mediagraphs. +my @devices = `ls -1 /sys/block | grep -E '^sd|^xvd|^vd|^md' | sort | uniq`; my $diskstats = ""; my $newdiskstats = ""; my $debug = 1;