diff --git a/bin/tessel-2.js b/bin/tessel-2.js index 69f90f69..31a7a294 100755 --- a/bin/tessel-2.js +++ b/bin/tessel-2.js @@ -145,11 +145,6 @@ parser.command('restore') log.level(options.loglevel); callControllerWith('restoreTessel', options); }) - .option('openwrt', { - abbr: 'o', - flag: true, - help: 'Restore a factory version of OpenWrt' - }) .help('Restore your Tessel by installing the factory version of OpenWrt.'); makeCommand('restart') diff --git a/lib/controller.js b/lib/controller.js index b1c324a1..d2750753 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -557,10 +557,6 @@ controller.provisionTessel = function(opts) { controller.restoreTessel = function(opts) { - if (!opts.openwrt) { - return Promise.reject('You must use the --openwrt option to restore.'); - } - opts.usb = true; opts.lan = false; opts.altSetting = 1; diff --git a/lib/tessel/restore.js b/lib/tessel/restore.js index 37b636c5..7dc859bf 100644 --- a/lib/tessel/restore.js +++ b/lib/tessel/restore.js @@ -3,10 +3,10 @@ var update = require('../update-fetch'); var log = require('../log'); var flash = require('../flash'); -Tessel.prototype.restore = function restore(opts) { +Tessel.prototype.restore = function restore() { var usbConnection = this.connection; - return new Promise(function(resolve, reject) { - if (opts.openwrt) { + return new Promise((resolve, reject) => { + log.info('Proceeding with updating OpenWrt...'); // download images @@ -19,7 +19,7 @@ Tessel.prototype.restore = function restore(opts) { resolve(); }); }); - } - return reject(new Error('You need to specify --openwrt to proceed.')); + + }); };