rem: var capemgr = file_find('/sys/devices', /^bone_capemgr./); if(typeof capemgr != 'undefined') { 
add: if(!is_capemgr()) { 
context: f.getEeproms = function(callback) {    var eeproms = {};    var capemgr = file_find('/sys/devices', /^bone_capemgr./);    if(typeof capemgr != 'undefined') {        var EepromFiles = {            '/sys/bus/i2c/drivers/at24/1-0050/eeprom': { type: 'bone' },            '/sys/bus/i2c/drivers/at24/3-0054/eeprom': { type: 'cape' },            '/sys/bus/i2c/drivers/at24/3-0055/eeprom': { type: 'cape' },            '/sys/bus/i2c/drivers/at24/3-0056/eeprom': { type: 'cape' },            '/sys/bus/i2c/drivers/at24/3-0057/eeprom': { type: 'cape' }        };        eeproms = eeprom.readEeproms(EepromFiles);        if(eeproms == {}) {            winston.debug('No valid EEPROM contents found');        }    } else {        var boardName = fs.readFileSync(capemgr + '/baseboard/board-name', 'ascii');        var version = fs.readFileSync(capemgr + '/baseboard/revision', 'ascii');        var serialNumber = fs.readFileSync(capemgr + '/baseboard/serial-number', 'ascii');        eeproms['/sys/bus/i2c/drivers/at24/1-0050/eeprom'] = {};        eeproms['/sys/bus/i2c/drivers/at24/1-0050/eeprom'].boardName = boardName;        eeproms['/sys/bus/i2c/drivers/at24/1-0050/eeprom'].version = version;        eeproms['/sys/bus/i2c/drivers/at24/1-0050/eeprom'].serialNumber = serialNumber;    }    if(callback) {        callback(eeproms);    }    return(eeproms);};
meta: 3863	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3863/ce011b7f00c4b14c71589e8986ebe4bce3c6f151/index.js/buggy/node_modules/bonescript/index.js