diff options
author | Christian Hesse <mail@eworm.de> | 2020-07-14 14:29:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-07-14 14:29:29 +0200 |
commit | 0b5ab833390a9b392b0b89fda9db0943456dda1a (patch) | |
tree | 18d47a073112c8163b293601638ea129d2990269 | |
parent | c4ff95b3aeed3abb588ee94bc02d4c50310f3857 (diff) |
capsman-download-packages: wait to be fully connected
-rw-r--r-- | capsman-download-packages | 2 | ||||
-rw-r--r-- | doc/capsman-download-packages.md | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/capsman-download-packages b/capsman-download-packages index e65ddc7..88aac0e 100644 --- a/capsman-download-packages +++ b/capsman-download-packages @@ -12,8 +12,10 @@ :global LogPrintExit; :global MkDir; :global ScriptLock; +:global WaitFullyConnected; $ScriptLock "capsman-download-packages"; +$WaitFullyConnected; :local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ]; :local InstalledVersion [ / system package update get installed-version ]; diff --git a/doc/capsman-download-packages.md b/doc/capsman-download-packages.md index add9b83..5acf914 100644 --- a/doc/capsman-download-packages.md +++ b/doc/capsman-download-packages.md @@ -19,10 +19,11 @@ Just install the script on CAPsMAN device: $ScriptInstallUpdate capsman-download-packages; -Optionally create a scheduler to run after startup, with a delay to ensure -internet connectivity is given: +Optionally install [global-wait](global-wait.md) and add a scheduler to run +after startup: - / system scheduler add name=capsman-download-packages on-event=":delay 2m; / system script run capsman-download-packages;" start-time=startup; + $ScriptInstallUpdate global-wait; + / system scheduler add name=capsman-download-packages on-event="/ system script { run global-wait; run capsman-download-packages; }" start-time=startup; Only packages available in older version are downloaded. For initial setup place the required packages to CAPsMAN package path (see @@ -54,6 +55,7 @@ See also -------- * [Run rolling CAP upgrades from CAPsMAN](capsman-rolling-upgrade.md) +* [Wait for configuration und functions](global-wait.md) --- [◀ Go back to main README](../README.md) |