OPENWRT_DEVICE_PRODUCT variable in /etc/os-release should be used to determine device type
OPENWRT_DEVICE_PRODUCT
/etc/os-release