]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/hddshutdown
pakfire: use correct tree on x86_64.
[ipfire-2.x.git] / src / scripts / hddshutdown
index dc49a17060ab4c509f58b3ab19216c593ec5fddf..146cc73474e57cda8622fd0665841e5390aaee19 100644 (file)
@@ -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;