source: ocsinventory-agent/trunk/fuentes/lib/Ocsinventory/Agent/Backend/DeviceID.pm @ 468

Last change on this file since 468 was 468, checked in by mabarracus, 4 years ago

Copyt trusty code

File size: 476 bytes
Line 
1package Ocsinventory::Agent::Backend::DeviceID;
2
3# Initialise the DeviceID. In fact this value is a bit specific since
4# it generates in the main script.
5sub run {
6  my $params = shift;
7  my $common = $params->{common};
8  my $config = $params->{config};
9
10  my $UsersLoggedIn = join "/", keys %user;
11
12  if ($config->{old_deviceid}) {
13    $common->setHardware({ OLD_DEVICEID => $config->{old_deviceid} });
14  }
15  $common->setHardware({ DEVICEID => $config->{deviceid} });
16
17}
18
191;
Note: See TracBrowser for help on using the repository browser.