line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Inventory::Bios; |
6
|
|
|
|
|
|
|
|
7
|
38
|
|
|
38
|
|
504
|
use v5.12.5; |
|
38
|
|
|
|
|
166
|
|
8
|
38
|
|
|
38
|
|
211
|
use warnings; |
|
38
|
|
|
|
|
95
|
|
|
38
|
|
|
|
|
1652
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.3'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
38
|
|
|
38
|
|
254
|
use Rex::Hardware::Host; |
|
38
|
|
|
|
|
96
|
|
|
38
|
|
|
|
|
513
|
|
13
|
38
|
|
|
38
|
|
968
|
use Rex::Logger; |
|
38
|
|
|
|
|
105
|
|
|
38
|
|
|
|
|
290
|
|
14
|
|
|
|
|
|
|
|
15
|
38
|
|
|
38
|
|
1425
|
use Rex::Inventory::SMBios; |
|
38
|
|
|
|
|
98
|
|
|
38
|
|
|
|
|
450
|
|
16
|
38
|
|
|
38
|
|
1413
|
use Rex::Inventory::DMIDecode; |
|
38
|
|
|
|
|
107
|
|
|
38
|
|
|
|
|
452
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get { |
19
|
|
|
|
|
|
|
|
20
|
51
|
50
|
|
51
|
0
|
247
|
if ( Rex::Hardware::Host::get_operating_system() eq "SunOS" ) { |
21
|
0
|
|
|
|
|
0
|
return Rex::Inventory::SMBios->new; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
else { |
24
|
51
|
|
|
|
|
1744
|
return Rex::Inventory::DMIDecode->new; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |