We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f1597 commit aeac141Copy full SHA for aeac141
1 file changed
src/hw_capemgr.js
@@ -413,6 +413,10 @@ exports.readPlatform = function(platform) {
413
if(platform.name == 'A335BNLT') platform.name = 'BeagleBone Black';
414
platform.version = fs.readFileSync(my.is_capemgr() + '/baseboard/revision',
415
'ascii').trim();
416
+ if(platform.version.match(/^GR/)) {
417
+ platform.version = platform.version.substr(2);
418
+ platform.name = 'BeagleBone Green';
419
+ }
420
if(!platform.version.match(/^[\040-\176]*$/)) delete platform.version;
421
platform.serialNumber = fs.readFileSync(my.is_capemgr() +
422
'/baseboard/serial-number', 'ascii').trim();
0 commit comments