diff options
author | mail_redacted_for_web | 2022-03-24 22:46:49 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2022-03-24 22:46:49 +0100 |
commit | 41b4b2351710ba7198ced0ef3343062d7985b08f (patch) | |
tree | 2b829dd269dfe397fd41500f5f37a49f83cb1a43 /erase-broken-modules | |
parent | c58a64be77d4fe0640616851af294300d60233c4 (diff) | |
download | mikrotik-fixes-41b4b2351710ba7198ced0ef3343062d7985b08f.tar.bz2 |
more fancy output before the hammer hits, FWIW
Diffstat (limited to 'erase-broken-modules')
-rw-r--r-- | erase-broken-modules/wiper.rsc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/erase-broken-modules/wiper.rsc b/erase-broken-modules/wiper.rsc index dd6bd7a..61c232b 100644 --- a/erase-broken-modules/wiper.rsc +++ b/erase-broken-modules/wiper.rsc @@ -9,11 +9,16 @@ # -------------------------- # -#: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" +{ + :local uptime [/system resource get uptime] + :local cpu [/system resource get cpu] + :local arch [/system resource get architecture-name] + :local board [/system resource get board-name] + :local version [/system resource get version] + :local id [/system/identity/get name] + :put "$id - $board - $version" + :put "CPU: $cpu ($arch) - Uptime: $uptime\n" +} :put "Setting packages to disabled..." :foreach pd in=$pkgdis do={ /system package disable $pd |