-
Notifications
You must be signed in to change notification settings - Fork 2
Fixing More Comparison Errors #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixing More Comparison Errors
Missed one
|
Turns out we can't strip -gnuton1 or -gnuton2 as those actually mean something ;) |
Committing Additional Logic Fixes
|
Wait a tick.... This issue might run deeper than expected. However, MerlinAU still displays a new firmware update in the main menu:
I think the issue now is with the webs_update script thinking there's an update available when there isn't? Is that possible that the gnutons_web_update script cannot correctly factor in gnuton1 vs gnuton2? https://github.com/ExtremeFiretop/MerlinAutoUpdate-Router/blob/main/gnuton_webs_update.sh I'm heading off to bed but maybe you can poke at this more. |
Sorry, bud. I'm going to bed after this reply. Today was a very long day, and I slept only a few hours between last night and this morning, so I'm really tired. Even though I don't have a router that is supported by Gnuton, I can take a look at the code. Have a good night!! |
I'm gonna poke down the path of the webs_update script today . I was just sure I was on the right track. And I probably am because our script probably should be able to factory in Gnuton1 vs Gnuton2. But even if it can, theres still some weirdness so I have a feeling my investigations aren't over yet. |
Additional Patches to Webs_Updates Reimplement the use of the $USE_BETA_WEIGHT
Allow Updates to Webs_Update Script
Navigate around the binded file for comparison
Workaround for Bound File
Fine-Tuning
|
Seems to work as expected now :) Let me know if you have any questions |
|
In summary, it looks like I was on the right track. |
Yeah, it seems that you got this one in the bag as well, LOL!!! P.S. |
Removing unnecessary unmount Was causing the webs_update file to always need to be remounted.





Fixing More Comparison Errors
This rolls back changes from PR: Fix Gnuton Errors Since Overhaul #464
And instead goes a different direction by using GetLatestFWUpdateVersionFromRouter 1 for long version of update firmware pulled down from the webs_update script instead of stripping it from the GetLatestFWUpdateVersionFromGitHub function
This will not be a problem as now the offiline mode is truely offline and that conflict has been resolved a different way.
Rolls back the changes from PR: Minor Fixes #423
And instead goes a different direction by using GetLatestFWUpdateVersionFromRouter 1 within the CreateEMailContent function and no longer strips the -gnuton version for long comparison.
This was done to address this issue where I manually (offline mode) flashed the latest beta version of gnuton firmware version: 3004.388.9_2-gnuton2_beta1 (aka a re-release)
Found here: https://github.com/gnuton/asuswrt-merlin.ng/releases/tag/3004.388.9_2-gnuton2_beta1
However overnight MerlinAU downgraded me back to the production version of: 3004.388.9_2-gnuton1
Found here: https://github.com/gnuton/asuswrt-merlin.ng/releases/tag/3004.388.9_2-gnuton1
MerlinAU was incorrectly weighting the new beta as an older beta, because it didn't understand that gnuton1 is older than gnuton2-beta1
Essentially it was working like this:
So I could use the beta switch in the settings to stop it from auto-downgrading me, but that's not how the setting is suppose to work, it's suppose to stop me from being auto-upgraded lol.
The solution for this was to modify FWVersionStrToNum to capture and factor in the Gnuton(X) value and feed that long version into CheckNewUpdateFirmwareNotification along with the long version of: "$current_version" so both are long versions going in, and factored in correctly if theres a bump in the gnuton release version (aka a re-release)