mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-09 08:48:27 +02:00
Fix block device detection for graphs and other scripts.
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
# IPFire HDD Shutdown state reader
|
||||
#
|
||||
|
||||
my @devices = `find /sys/block/* -maxdepth 0 ! -name sr* ! -name loop* ! -name ram* -exec basename {} \\; | 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;
|
||||
|
||||
Reference in New Issue
Block a user