mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
local_facts.fact: Explain null byte cleanup PR #3086
This commit is contained in:
parent
2a754a3c78
commit
c637389892
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ tmp=$(grep -ai raspberry /proc/device-tree/model | tr -d '\0') &&
|
|||
# /proc/device-tree/model e.g. 'Parallels ARM Virtual Machine' identical to...
|
||||
# /sys/firmware/devicetree/base/model (also true on RPi hardware!)
|
||||
|
||||
# tr -d '\0' ...strips out its null byte, for cleaner output (PR #3086)
|
||||
|
||||
tmp=$(tr -d '\0' < /proc/device-tree/model) &&
|
||||
DEVICETREE_MODEL=$tmp
|
||||
|
||||
|
|
Loading…
Reference in a new issue