line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Generic::Dmidecode; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
103238995
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
4
|
1
|
|
|
1
|
|
13
|
use warnings; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
95
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
8
|
use English qw(-no_match_vars); |
|
1
|
|
|
|
|
49
|
|
|
1
|
|
|
|
|
34
|
|
7
|
1
|
|
|
1
|
|
1084
|
use UNIVERSAL::require; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
444
|
use FusionInventory::Agent::Tools; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
183
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub isEnabled { |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# don't run dmidecode on Win2003 |
14
|
|
|
|
|
|
|
# http://forge.fusioninventory.org/issues/379 |
15
|
0
|
0
|
|
0
|
0
|
|
if ($OSNAME eq 'MSWin32') { |
16
|
0
|
|
|
|
|
|
Win32->require(); |
17
|
0
|
0
|
|
|
|
|
return if Win32::GetOSName() eq 'Win2003'; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return canRun('dmidecode'); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
0
|
0
|
|
sub doInventory {} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |