New version autodetect also SATA and some USB bridges
start)
boot_mesg -n "Enabling S.M.A.R.T.: ";
for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do
- /usr/sbin/smartctl -d ata --smart=on /dev/$disk > /dev/nul;
+ /usr/sbin/smartctl --smart=on /dev/$disk > /dev/nul;
if [ ${?} = 0 ]; then
boot_mesg -n "$SUCCESS$disk$NORMAL ";
else
exit(1);
}
- sprintf(command, "smartctl -iHA -d ata /dev/%s", argv[1]);
+ sprintf(command, "smartctl -iHA /dev/%s", argv[1]);
safe_system(command);
return 0;
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);