| 301 | | $SIG{TERM} = 'IGNORE'; |
| 302 | | $SIG{HUP} = 'IGNORE'; |
| 303 | | $SIG{INT} = 'IGNORE'; |
| 304 | | $SIG{QUIT} = 'IGNORE'; |
| 305 | | |
| 306 | | print("Aborting, restoring fans...\n"); |
| 307 | | my $fcvcount = 0; |
| 308 | | |
| 309 | | while ( $fcvcount < $#afcpwm+1) |
| 310 | | { |
| 311 | | my $pwmo = $afcpwm[$fcvcount]; |
| 312 | | &pwmdisable($afcpwm[$fcvcount]); |
| 313 | | $fcvcount++; |
| 314 | | } |
| 315 | | print("Verify fans have returned to full speed\n"); |
| 316 | | exit(0); |
| | 302 | unless ($fanrestored) |
| | 303 | { |
| | 304 | $SIG{TERM} = 'IGNORE'; |
| | 305 | $SIG{HUP} = 'IGNORE'; |
| | 306 | $SIG{INT} = 'IGNORE'; |
| | 307 | $SIG{QUIT} = 'IGNORE'; |
| | 308 | |
| | 309 | print("Aborting, restoring fans...\n"); |
| | 310 | my $fcvcount = 0; |
| | 311 | |
| | 312 | while ($fcvcount < $#afcpwm+1) |
| | 313 | { |
| | 314 | my $pwmo = $afcpwm[$fcvcount]; |
| | 315 | &pwmdisable($afcpwm[$fcvcount]); |
| | 316 | $fcvcount++; |
| | 317 | } |
| | 318 | print("Verify fans have returned to full speed\n"); |
| | 319 | $fanrestored = 1; |
| | 320 | exit(0); |
| | 321 | } |