aboutsummaryrefslogtreecommitdiffstats
path: root/remove-packages
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-12-21 11:38:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-12-21 11:38:04 +0100
commit2505e5d42f872b5f8a4ef7e5ca42ecadb16ccdee (patch)
treee8fa3af4785c716067afe556839363d7bb82d80d /remove-packages
parentf4673928efaa46a03888063ef5fa3bc2d40eb38e (diff)
remove-packages: delay if uptime less than one minute
Diffstat (limited to 'remove-packages')
-rw-r--r--remove-packages2
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={