diff options
author | Christian Hesse <mail@eworm.de> | 2018-12-21 11:38:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-12-21 11:38:04 +0100 |
commit | 2505e5d42f872b5f8a4ef7e5ca42ecadb16ccdee (patch) | |
tree | e8fa3af4785c716067afe556839363d7bb82d80d | |
parent | f4673928efaa46a03888063ef5fa3bc2d40eb38e (diff) |
remove-packages: delay if uptime less than one minute
-rw-r--r-- | remove-packages | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remove-packages b/remove-packages index 6de1c39..2ca29e2 100644 --- a/remove-packages +++ b/remove-packages @@ -4,6 +4,8 @@ # # remove packages (*.npk) not matching installed version +:if ([ /system resource get uptime ] < 1m) do={ :delay 1m; } + :local version [ / system package update get installed-version ]; :foreach package in=[ / file find type="package" ] do={ |