From 2505e5d42f872b5f8a4ef7e5ca42ecadb16ccdee Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 21 Dec 2018 11:38:04 +0100 Subject: remove-packages: delay if uptime less than one minute --- remove-packages | 2 ++ 1 file changed, 2 insertions(+) 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={ -- cgit v1.2.3-70-g09d2