diff --git a/script/enable_i2c.js b/script/enable_i2c.js
index <HASH>..<HASH> 100755
--- a/script/enable_i2c.js
+++ b/script/enable_i2c.js
@@ -27,7 +27,16 @@ var fs = require('fs');
 var iniBuilder = require('ini-builder');
 
 console.log('Checking if I2C is enabled at boot time');
-var config = iniBuilder.parse(fs.readFileSync('/boot/config.txt').toString(), { commentDelimiter: '#' });
+
+var config = '';
+
+try {
+  config = fs.readFileSync('/boot/config.txt').toString()
+} catch (e) {
+}
+
+config = iniBuilder.parse(config, { commentDelimiter: '#' })
+
 var changes = false;
 
 var i2c_arm = iniBuilder.find(config, ['dtparam', 'i2c_arm']);
Run enable_i2c.js where /boot/config.txt does not exist