Skip to content

Commit

Permalink
Merge pull request #16 from HavrilaJ/cpuModel
Browse files Browse the repository at this point in the history
Add cpuModel into reporting
  • Loading branch information
kouril authored Sep 4, 2023
2 parents c11ae45 + d0b56c0 commit 61c83ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pakiti-client
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ sub find_system ($) {
$data->{kernel} = output1($Option{uname}, "-r");
$data->{arch} = output1($Option{uname}, "-m");
}
if (-f "/proc/cpuinfo") {
$data->{cpu} = output1("grep", "\"model name\"", "/proc/cpuinfo", "|", "sort", "-u", "|", "awk", "-F", "\":\"" ,"\'{print\$2}\'");
}
# known distributions
foreach my $release (qw(/etc/redhat-release /etc/fedora-release)) {
if (-f $release) {
Expand Down

0 comments on commit 61c83ea

Please sign in to comment.