File: DeviceID.pm

package info (click to toggle)
ocsinventory-agent 2%3A2.10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,424 kB
  • sloc: perl: 26,492; xml: 773; objc: 528; sh: 386; ansic: 333; makefile: 12
file content (18 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Ocsinventory::Agent::Backend::DeviceID;

# Initialise the DeviceID. In fact this value is a bit specific since
# it generates in the main script.
sub run {
    my $params = shift;
    my $common = $params->{common};
    my $config = $params->{config};

    my $UsersLoggedIn = join "/", keys %user;

    if ($config->{old_deviceid}) {
        $common->setHardware({ OLD_DEVICEID => $config->{old_deviceid} });
    }
    $common->setHardware({ DEVICEID => $config->{deviceid} });
}

1;