"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProLinuxInfo = void 0; const node_fs_1 = __importDefault(require("node:fs")); async function getProLinuxInfo() { const prolinuxInfo = node_fs_1.default.readFileSync('/opt/build-info/prolinux-info.txt', 'utf8'); // "4,c5e3ff5b-1aba-4796-80dd-8622ec4f9cc6,prolinux,embedded,dev,Thu Sep 21 11:04:27 PM EDT 2023,prolinux-root-embedded-dev.squish,x64" const [buildnum, uuid, product, variant, channel, builddate, filename, arch] = prolinuxInfo.split(','); // read /sineware/deviceinfo_codename file, get the string const deviceinfoCodename = node_fs_1.default.readFileSync('/sineware/deviceinfo_codename', 'utf8').trim(); return { buildnum, uuid, product, variant, channel, builddate, filename, arch, deviceinfoCodename }; } exports.getProLinuxInfo = getProLinuxInfo; //# sourceMappingURL=getProLinuxInfo.js.map