From 6dfed8548ce0b48b3e8bf413b2a2db0fd6214d6f Mon Sep 17 00:00:00 2001 From: Mitchell R Date: Sun, 10 May 2026 03:17:48 +0200 Subject: [PATCH] fix: strip null byte from /proc/device-tree/model --- kiosk/prototype.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiosk/prototype.sh b/kiosk/prototype.sh index c2549fe..8ce6227 100644 --- a/kiosk/prototype.sh +++ b/kiosk/prototype.sh @@ -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