Seiteneigenschaften |
---|
Deutsch |
---|
Beschreibung:
Dieses Add-in Skript kann verwendet werden, wenn Sie einen Daily Build oder eine andere Firmware als die in der LMC verfügbare installieren möchten.
Liste der verwendeten Variablen:
Variable | Beschreibung |
---|
Add-in Code:
/**
* @param {Config} config
* @param {Context} context
* Do not edit this comment or parameter types. Required for code suggestions
*/
exports.main = function (config, context) {
if (context.device.type.indexOf("device type") >= 0) { // limit execution to one device type (device type = device model as named in sysinfo)
config.addScriptLine('sleep 30s'); // important do not change
config.addScriptLine('loadfirmware -n -a "source address" https://link-to-firmware-webserver/directory-to-upx-file'); // loadfirmware command + link to upx file
}
// example for one device type
/**
if (context.device.type.indexOf("LANCOM OAP-830") >= 0) {
config.addScriptLine('sleep 30s');
config.addScriptLine('loadfirmware -n -a INTRANET https://ftp.lancom.de/LANCOM-Beta/LCOS/LCOS%2010.50/BUIL0615/LC-OAP830-10.50.0615.upx');
}
*/
};
Add-in als JSON-Datei:
View file |
---|
name | firmware_update_lcos.json |
---|
page | Firmware-Update bei LCOS-Geräten |
---|
space | LMCADEN |
---|
height | 150 |
---|
|
...
Description:
This add-in script can be used if you want to install a daily build or a firmware other than the one available in the LMC.
List of used variables:
Add-in code:
/** * @param {Config} config * @param {Context} context * Do not edit this comment or parameter types. Required for code suggestions */ exports.main = function (config, context) {
if (context.device.type.indexOf("device type") >= 0) { // limit execution to one device type (device type = device model as named in sysinfo) config.addScriptLine('sleep 30s'); // important do not change config.addScriptLine('loadfirmware -n -a "source address" https://link-to-firmware-webserver/directory-to-upx-file'); // loadfirmware command + link to upx file }
// example for one device type /** if (context.device.type.indexOf("LANCOM OAP-830") >= 0) { config.addScriptLine('sleep 30s'); config.addScriptLine('loadfirmware -n -a INTRANET https://ftp.lancom.de/LANCOM-Beta/LCOS/LCOS%2010.50/BUIL0615/LC-OAP830-10.50.0615.upx'); } */
};
|
---|
Add-in as JSON file:
View file |
---|
name | firmware_update_lcos.json |
---|
|
...