From: Arne Fitzenreiter Date: Sat, 24 Sep 2011 10:01:12 +0000 (+0200) Subject: makegraphs: replace kudzu. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=491058667250a1e720b39c44e97c376d25c8eea2 makegraphs: replace kudzu. --- diff --git a/src/scripts/makegraphs b/src/scripts/makegraphs index 97d086a10..48444f5e1 100644 --- a/src/scripts/makegraphs +++ b/src/scripts/makegraphs @@ -102,7 +102,7 @@ sub updatehdddata{ ## Update vnstat system ('/usr/bin/vnstat -u'); -my @disks = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; +my @disks = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | sort | uniq`; system("unlink /var/run/hddstatus 2>/dev/null && touch /var/run/hddstatus"); foreach (@disks){ my $disk = $_;