rem: var capemgr = file_find('/sys/devices', /^bone_capemgr./); if(file_existsSync(capemgr + '/baseboard/board-name')) { 
add: if(file_existsSync(is_capemgr() + '/baseboard/board-name')) { 
context: f.getPlatform = function(callback) {    var platform = {'platform': bone, 'name': "BeagleBone", 'bonescript': "0.2"};    var capemgr = file_find('/sys/devices', /^bone_capemgr./);    if(file_existsSync(capemgr + '/baseboard/board-name')) {        platform.name = fs.readFileSync(capemgr + '/baseboard/board-name', 'ascii').trim();        if(platform.name == 'A335BONE') platform.name = 'BeagleBone';        if(platform.name == 'A335BNLT') platform.name = 'BeagleBone Black';        platform.version = fs.readFileSync(capemgr + '/baseboard/revision', 'ascii').trim();        if(!platform.version.match(/^[\040-\176]*$/)) delete platform.version;        platform.serialNumber = fs.readFileSync(capemgr + '/baseboard/serial-number', 'ascii').trim();        if(!platform.serialNumber.match(/^[\040-\176]*$/)) delete platform.serialNumber;    }    if(callback) callback(platform);    return(platform);};
meta: 5211	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5211/ce011b7f00c4b14c71589e8986ebe4bce3c6f151/index.js/clean/node_modules/bonescript/index.js