X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Fscripts%2Fhddshutdown;h=dc49a17060ab4c509f58b3ab19216c593ec5fddf;hp=bb28f830a7b5afd991c61a820a89ca5aaf375f24;hb=5902dd464bac74312141006986fde73cf14abd84;hpb=324bb8881f2e21a483d0d8495564be240af33b66 diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown index bb28f830a7..dc49a17060 100644 --- a/src/scripts/hddshutdown +++ b/src/scripts/hddshutdown @@ -22,7 +22,7 @@ # IPFire HDD Shutdown state reader # -my @devices = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; +my @devices = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; my $diskstats = ""; my $newdiskstats = ""; my $debug = 1;