X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fscripts%2Fmakegraphs;fp=src%2Fscripts%2Fmakegraphs;h=48444f5e188e672e108c8e6a2ccb596520656f64;hp=97d086a1057ba05b23599dc716abc30f2ccef21b;hb=491058667250a1e720b39c44e97c376d25c8eea2;hpb=5902dd464bac74312141006986fde73cf14abd84 diff --git a/src/scripts/makegraphs b/src/scripts/makegraphs index 97d086a105..48444f5e18 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 = $_;