git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/erase-broken-modules/README.md
blob: 32a993d3a0e2858e8c1fe166732d4822bdf42c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Scenario

For whatever reason, you end up with a MikroTīk device with broken modules. Whatever you do, they
will not disappear. Also, in my scenario – the user module was broken – one of two devices never applied
any update, and the other even did not remember most changes.

The solution is to:

1. Uninstall all packages that can be uninstalled (except for system)
1. Disable all packages that cannot be uninstalled (mostly because they are bundled)
1. Place an update to the device's root
1. Reboot

You will then end up with an updated device, no other modules installed, and in 2/2 cases for me
all setting were still present. Of course a backup prior to this is still highly recommended.

This folder contains an example rsc file managing the actions on the device and an example script
copying the update and firing the rsc.