From 7437687ab663b4bfabb8593dc678bd85efe52720 Mon Sep 17 00:00:00 2001 From: Adam Boardman Date: Thu, 20 Apr 2023 20:39:13 +0100 Subject: [PATCH] Fix for when not running on an actual device --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 88af470..6d525bc 100755 --- a/debian/postinst +++ b/debian/postinst @@ -28,7 +28,7 @@ then device="mt6873" fi -if [[ "$device" == unknown ]] +if [ -f "/proc/device-tree/model" -a "$device" == unknown ]; then model=$(