/** * @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');
}
*/
};
|
---|