diff options
-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 |