Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

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:

VariableBeschreibung




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
namefirmware_update_lcos.json
height150

...

Englisch

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:

VariableDescription




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
namefirmware_update_lcos.json
height150

...