src/cmd/udev.js
function installUdevRules() {
	if (!systemSupportsUdev()) {
		return when.reject(new Error('Not supported'));
	}
	return when.promise((resolve, reject) => {
		const cmd = `sudo cp "${UDEV_RULES_ASSET_FILE}" "${UDEV_RULES_SYSTEM_FILE}"`;
		console.log(cmd);
		childProcess.exec(cmd, err => {
			if (err) {
				_udevRulesInstalled = undefined;
				return reject(new VError(err, 'Could not install udev rules'));
			}
			_udevRulesInstalled = true;
			resolve();
		});
	});
}
function installUdevRules() {
	if (!systemSupportsUdev()) {
		return when.reject(new Error('Not supported'));
	}
	return when.promise((resolve, reject) => {
		const cmd = `sudo cp "${UDEV_RULES_ASSET_FILE}" "${UDEV_RULES_SYSTEM_FILE}"`;
		console.log(cmd);
		childProcess.exec(cmd, err => {
			if (err) {
				_udevRulesInstalled = undefined;
				return reject(new VError(err, 'Could not install udev rules'));
			}
			_udevRulesInstalled = true;
			resolve();
		});
	});
}
function installUdevRules ( ) { if ( ! systemSupportsUdev ( ) ) { return when . reject ( new Error ( 'Not supported' ) ) ; } return when . promise ( ( resolve , reject ) => { const cmd = ` ${ UDEV_RULES_ASSET_FILE } ${ UDEV_RULES_SYSTEM_FILE } ` ; console . log ( cmd ) ; childProcess . exec ( cmd , err => { if ( err ) { _udevRulesInstalled = undefined ; return reject ( new VError ( err , 'Could not install udev rules' ) ) ; } _udevRulesInstalled = true ; resolve ( ) ; } ) ; } ) ; }
Install the udev rules.

@return {Promise}
Install the udev rules .