Fix report CPU_TYPE in hardware.sh for RPIs
Changes: * For CPU_TYPE in hardware.sh, report something if /proc/cpuinfo does not contain processor model information
This commit is contained in:
parent
17d6163514
commit
847f4ab742
5 changed files with 19 additions and 5 deletions
4
VERSION
4
VERSION
|
@ -1,2 +1,2 @@
|
|||
10.0.0.0
|
||||
10.0.0.0
|
||||
10.0.0.1
|
||||
10.0.0.1
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"id": {
|
||||
"group": null,
|
||||
"name": "TA-unix",
|
||||
"version": "10.0.0.0"
|
||||
"version": "10.0.0.1"
|
||||
},
|
||||
"license": {
|
||||
"name": "Splunk Software License Agreement",
|
||||
|
|
|
@ -17,6 +17,7 @@ if [ "$KERNEL" = "Linux" ] ; then
|
|||
CPU_TYPE=$(awk -F: '/model name/ {print $2; exit}' /proc/cpuinfo 2>>"$TEE_DEST")
|
||||
CPU_CACHE=$(awk -F: '/cache size/ {print $2; exit}' /proc/cpuinfo 2>>"$TEE_DEST")
|
||||
CPU_COUNT=$(grep -c processor /proc/cpuinfo 2>>"$TEE_DEST")
|
||||
[ -z "$CPU_TYPE" ] && [ -r /proc/device-tree/compatible ] && CPU_TYPE=$(cat /proc/device-tree/compatible | tr '\0' ',')
|
||||
# HDs
|
||||
# shellcheck disable=SC2010
|
||||
for deviceBasename in $(ls /sys/block | grep -E -v '^(dm|md|ram|sr|loop)')
|
||||
|
|
|
@ -17,7 +17,7 @@ docs_section_override = AddOns:released
|
|||
|
||||
[launcher]
|
||||
author = Michael Erdely
|
||||
version = 10.0.0.0
|
||||
version = 10.0.0.1
|
||||
description = Technical Add-on for Unix and Linux
|
||||
|
||||
#[package]
|
||||
|
@ -26,5 +26,5 @@ description = Technical Add-on for Unix and Linux
|
|||
|
||||
[id]
|
||||
name = TA-unix
|
||||
version = 10.0.0.0
|
||||
version = 10.0.0.1
|
||||
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
# Technical Add-on for Unix and Linux
|
||||
|
||||
## Version 10.0.0.1 (2025-02-19)
|
||||
|
||||
Fix report CPU_TYPE in hardware.sh for RPIs
|
||||
|
||||
Changes:
|
||||
|
||||
* For CPU_TYPE in hardware.sh, report something if /proc/cpuinfo does not
|
||||
contain processor model information
|
||||
|
||||
## Version 10.0.0.0 (2025-02-05)
|
||||
|
||||
Merge in Splunk Add-On for Unix and Linux version 10.0.0
|
||||
|
||||
## Version 9.2.0.13 (2025-02-03)
|
||||
|
||||
Fix alignment and fix packages for Arch Linux
|
||||
|
|
Loading…
Add table
Reference in a new issue