From c58a64be77d4fe0640616851af294300d60233c4 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 24 Mar 2022 17:37:10 +0100 Subject: InComm, +wiper --- erase-broken-modules/wiper.rsc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 erase-broken-modules/wiper.rsc (limited to 'erase-broken-modules/wiper.rsc') diff --git a/erase-broken-modules/wiper.rsc b/erase-broken-modules/wiper.rsc new file mode 100644 index 0000000..dd6bd7a --- /dev/null +++ b/erase-broken-modules/wiper.rsc @@ -0,0 +1,27 @@ +# vim:syntax=rsc:ts=4 +# procedure: 1. try manually to uninstall a package. unless that works add it to pkgdis, if it works --> pkguninst. +# leave routeros-* in uninstall. +# 2. put an UPGRADE package into the root folder of the device, put this rsc file on a disk +# 3. execute the rsc file +# ...not yet tested with a downgrade package. +:global pkguninst {"lora";"ups";"gps";"ntp";"openflow";"user-manager";"multicast";"calea";"tr069-client";"routeros-arm"} +:global pkgdis {"ipv6";"wireless";"hotspot";"mpls";"routing";"ppp";"dhcp";"security";"advanced-tools"} + +# -------------------------- # + +#:put "uptime:" +:global uptime [/system resource get uptime] +:global cpu [/system resource get cpu] +:global arch [/system resource get architecture-name] +:put "CPU: $cpu ($arch) - Uptime: $uptime\n" +:put "Setting packages to disabled..." +:foreach pd in=$pkgdis do={ + /system package disable $pd +} +:put "Setting packages to uninstall..." +:foreach pu in=$pkguninst do={ + /system package uninstall $pu +} +:put "Rebooting..." + +/system reboot -- cgit v1.2.3