From: Arne Fitzenreiter Date: Sat, 24 Sep 2011 10:00:55 +0000 (+0200) Subject: hddshutdown: replace kudzu. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5902dd464bac74312141006986fde73cf14abd84;p=people%2Fteissler%2Fipfire-2.x.git hddshutdown: replace kudzu. --- diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown index bb28f830a..dc49a1706 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;