summaryrefslogtreecommitdiffstats
path: root/_ont/ont-huawei-ma5671a-root-web.md
diff options
context:
space:
mode:
authorErnesto Castellotti <mail@ernestocastellotti.it>2023-01-11 19:16:39 +0100
committerSimone <26844016+simonebortolin@users.noreply.github.com>2023-01-12 00:02:02 +0100
commit464daa22264ca8c93701d0810d2a8aaf32c6bf54 (patch)
treeec94a1b4a1c0cf9943c06ee49f7aa3124191a491 /_ont/ont-huawei-ma5671a-root-web.md
parentRename utils.js to serialUtil.js (diff)
downloadhack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar.gz
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar.bz2
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar.lz
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar.xz
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.tar.zst
hack-gpon.github.io-464daa22264ca8c93701d0810d2a8aaf32c6bf54.zip
Diffstat (limited to '')
-rw-r--r--_ont/ont-huawei-ma5671a-root-web.md20
1 files changed, 12 insertions, 8 deletions
diff --git a/_ont/ont-huawei-ma5671a-root-web.md b/_ont/ont-huawei-ma5671a-root-web.md
index efb0d85..18652d7 100644
--- a/_ont/ont-huawei-ma5671a-root-web.md
+++ b/_ont/ont-huawei-ma5671a-root-web.md
@@ -185,31 +185,35 @@ FALCON => saveenv
return;
}
- await lantiqRootUboot(port,
+ let result = await lantiqRootUboot(port, "Huawei MA5671A",
(msg) => {
loading(msg, 0);
},
(err) => {
showError(err, 0);
console.log(err);
- },
- () => {
- showSuccess("Congratulations! Step completed.", 0);
}
);
- await unlockHuaweiShell(port,
+ if (result) {
+ showSuccess("Congratulations! Step completed.", 0);
+ } else {
+ return;
+ }
+
+ result = await unlockHuaweiShell(port,
(msg) => {
loading(msg, 1);
},
(err) => {
showError(err, 1);
console.log(err);
- },
- () => {
- showSuccess("Congratulations! Step completed.", 1);
}
);
+
+ if (result) {
+ showSuccess("Congratulations! Step completed.", 1);
+ }
}
</script>