]> 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 bb28f830a7b5afd991c61a820a89ca5aaf375f24..146cc73474e57cda8622fd0665841e5390aaee19 100644 (file)
@@ -22,7 +22,8 @@
 # IPFire HDD Shutdown state reader
 #
 
-my @devices = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | 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;