1 package Ocsinventory::Agent::Backend::OS::Generic::Hostname;
5 my $common = $params->{common};
6 return 1 if $common->can_run ("hostname");
10 # Initialise the distro entry
13 my $common = $params->{common};
17 chomp ( $hostname = `hostname -f` ); # TODO: This is not generic.
19 $common->setHardware ({NAME => $hostname});