mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 08:22:59 +02:00
Removed smartctl ATA hardcoding.
New version autodetect also SATA and some USB bridges
This commit is contained in:
@@ -83,7 +83,7 @@ sub updatehdddata{
|
||||
if (!$standby){
|
||||
$temp = 0;
|
||||
my $smart_output = '';
|
||||
system("$path_smartctl -iHA -d ata /dev/$disk > /var/run/smartctl_out_hddtemp-$disk");
|
||||
system("$path_smartctl -iHA /dev/$disk > /var/run/smartctl_out_hddtemp-$disk");
|
||||
if ( -e "/var/run/smartctl_out_hddtemp-".$array[$#array] ){
|
||||
my $hdd_output = `cat /var/run/smartctl_out_hddtemp-$array[$#array] | grep Temperature_`;
|
||||
my @t = split(/\s+/,$hdd_output);
|
||||
|
||||
Reference in New Issue
Block a user