diff options
author | Ernesto Castellotti <mail@ernestocastellotti.it> | 2023-01-11 19:16:39 +0100 |
---|---|---|
committer | Simone <26844016+simonebortolin@users.noreply.github.com> | 2023-01-12 00:02:02 +0100 |
commit | 464daa22264ca8c93701d0810d2a8aaf32c6bf54 (patch) | |
tree | ec94a1b4a1c0cf9943c06ee49f7aa3124191a491 /_ont | |
parent | Rename utils.js to serialUtil.js (diff) | |
download | hack-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 '_ont')
-rw-r--r-- | _ont/ont-huawei-ma5671a-root-web.md | 20 |
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> |