Fix for when not running on an actual device
This commit is contained in:
parent
037cc71b3f
commit
7437687ab6
1 changed files with 1 additions and 1 deletions
2
debian/postinst
vendored
2
debian/postinst
vendored
|
|
@ -28,7 +28,7 @@ then
|
||||||
device="mt6873"
|
device="mt6873"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$device" == unknown ]]
|
if [ -f "/proc/device-tree/model" -a "$device" == unknown ];
|
||||||
then
|
then
|
||||||
model=$(</proc/device-tree/model)
|
model=$(</proc/device-tree/model)
|
||||||
if [[ "$model" =~ ^(.*)MT6797(.*)$ ]];
|
if [[ "$model" =~ ^(.*)MT6797(.*)$ ]];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue