mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 09:52:58 +02:00
hddshutdown: replace kudzu.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user