Closed issrec closed 1 month ago
Hi @issrec, i initially did not build this tool with RouterOS v6 in mind, but if you need this compatibility i'm more than happy to help. I'll setup a test environment tomorrow - expect a patch this weekend.
Does the default target-version matter to you (can be overwritten with -tgt
)? Currently it will always use latest ROS v7 version, but in your use case this probably wont work.
Hi @Marco98, thanks for fast reaction. Unfortunately, the proposed approach did not provide a solution:
$ ./routeros-upgrader -tgt 6.49.15
2024/07/19 15:22:09 the target version is: 6.49.15
2024/07/19 15:22:09 checking installed packages
2024/07/19 15:22:09 fatal error: Process exited with status 1
@issrec sorry for the misunderstanding - that was a question on how it should be implemented. I've now implemented it, so that it will stay on the latest minor version per default, which should be a mostly sane default imo.
Please try this prerelease if you have the time. It should™ work as you probably would expect.
Hi, thank you for the new release. I started updating the device as standard, so I already had the packages updated. Regardless, the firmware could be updated using routeros-upgrader
.
$ ./routeros-upgrader
2024/07/22 08:18:02 checking installed packages
|OK> MikroTik: routeros-7.15.2-powerpc
|OK> MikroTik: wireless-7.15.2-powerpc
|UP> MikroTik: fw 3.24 => fw 7.15.2
Install? [y/N]: y
2024/07/22 08:18:12 MikroTik: upgraded firmware
Execute synchronized reboot? [y/N]: y
2024/07/22 08:18:14 MikroTik: rebooting in 10s
I thank you for your support. Problem solved.
PS. By the way, I have some enhancement suggestions for routeros-upgrader
, but for clarity I will register it as a separate issue ;) - #3.
I have such an old device/system:
MikroTik RouterOS 6.48.4
.A session with
routeros-upgrader
looks like this:Looking at the code we have this (routeros-upgrader/pkg/rosapi/rosapi.go:25):
Trying to repeat this in the console results in an error:
But this works (only the first slash):