Fix for when not running on an actual device

This commit is contained in:
Adam Boardman 2023-04-20 20:39:13 +01:00
parent 037cc71b3f
commit 7437687ab6

2
debian/postinst vendored
View file

@ -28,7 +28,7 @@ then
device="mt6873"
fi
if [[ "$device" == unknown ]]
if [ -f "/proc/device-tree/model" -a "$device" == unknown ];
then
model=$(</proc/device-tree/model)
if [[ "$model" =~ ^(.*)MT6797(.*)$ ]];