Use device-tree instead of deviceinfo
To make this tool more universal, drop the dependency on deviceinfo by using device-tree's compatible string:
enchilada:/ # printf "%s\n" "$(cat /sys/firmware/devicetree/base/model)"
OnePlus 6
enchilada:/ # printf "%s\n" "$(cat /sys/firmware/devicetree/base/compatible )"
oneplus,enchiladaqcom,sdm845
CC: @calebccff