diff --git a/www/docs/guide/over-the-air-updates.md b/www/docs/guide/over-the-air-updates.md index db05486..c4e9cf8 100644 --- a/www/docs/guide/over-the-air-updates.md +++ b/www/docs/guide/over-the-air-updates.md @@ -75,6 +75,15 @@ For instance, to download, decompress, and install an image on-the-fly, use: curl | 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 - | 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. diff --git a/www/src/theme/prism-lang-shell.js b/www/src/theme/prism-lang-shell.js index e3e204f..d87681b 100644 --- a/www/src/theme/prism-lang-shell.js +++ b/www/src/theme/prism-lang-shell.js @@ -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)/,