fix: path should be absolute

This commit is contained in:
Maarten van Gompel 2021-03-18 19:21:41 +01:00
parent cee4917360
commit 010e919d3b

View file

@ -8,7 +8,7 @@ DEVICE="unknown"
#Detecting device
if [ -e /sys/firmware/devicetree/base ]; then
if grep -q pinephone compatible; then
if grep -q pinephone /sys/firmware/devicetree/base/compatible; then
DEVICE="pinephone"
fi
fi