mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 16:56:33 +00:00
fix: strip null byte from /proc/device-tree/model
This commit is contained in:
parent
d9a2947001
commit
6dfed8548c
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ pair_with_server() {
|
|||
local hostname
|
||||
hostname=$(hostname)
|
||||
local hw_model
|
||||
hw_model=$(cat /proc/device-tree/model 2>/dev/null || echo "unknown")
|
||||
hw_model=$(tr -d '\0' < /proc/device-tree/model 2>/dev/null || echo "unknown")
|
||||
|
||||
echo "Requesting pairing code..."
|
||||
local resp
|
||||
|
|
|
|||
Loading…
Reference in a new issue