summaryrefslogtreecommitdiffstats
path: root/_ont/ont-huawei-ma5671a-root-web.md
diff options
context:
space:
mode:
Diffstat (limited to '_ont/ont-huawei-ma5671a-root-web.md')
-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>