diff --git a/scripts/core/sxmo_setpermissions.sh b/scripts/core/sxmo_setpermissions.sh index d462499..ef8c951 100755 --- a/scripts/core/sxmo_setpermissions.sh +++ b/scripts/core/sxmo_setpermissions.sh @@ -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