Skip to content

Commit

Permalink
docs: add suggestion for unstable internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Nov 27, 2023
1 parent 942d914 commit 35cd2f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions www/docs/guide/over-the-air-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ For instance, to download, decompress, and install an image on-the-fly, use:
curl <url to the image> | xz -d | rugpi-ctrl update install --stream -
```

In case the internet connection is unstable, you may also want to use

```shell
wget -q -t 0 -O - <url to the image> | rugpi-ctrl update install --stream -
```

to retry downloading indefinitely. For further details, we refer to the manpage of `wget`.


Streaming an image is faster because the data only has to be written to the SD card once.
Furthermore, it has the advantage that the image does not take up precious space on the data partition during the installation.

Expand Down
2 changes: 1 addition & 1 deletion www/src/theme/prism-lang-shell.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Prism.languages.shell = {
function: {
pattern: /(\sxz\s|\bcurl\b|docker|rugpi-ctrl|\.\/run-bakery|\bgit\b|\bdocker\b)/
pattern: /(\sxz\s|\bwget\b|\bcurl\b|docker|rugpi-ctrl|\.\/run-bakery|\bgit\b|\bdocker\b)/
},
constant: {
pattern: /(true|false)/,
Expand Down

0 comments on commit 35cd2f9

Please sign in to comment.