diff options
| author | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-08 22:21:58 +0100 |
|---|---|---|
| committer | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-08 22:21:58 +0100 |
| commit | 1a5ffbc01bfbf483f6630976ca5128df47c56c7e (patch) | |
| tree | dee133455a8ab56eec2ecdf5551f3651c1d8c52f /raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh | |
| parent | 1ac5863bf1566f5a3d1337a740e88ee33a59209c (diff) | |
| download | RaveOS-PKGBUILD-1a5ffbc01bfbf483f6630976ca5128df47c56c7e.tar.gz RaveOS-PKGBUILD-1a5ffbc01bfbf483f6630976ca5128df47c56c7e.zip | |
fix
Diffstat (limited to 'raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh')
| -rw-r--r-- | raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh b/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh new file mode 100644 index 0000000..76622eb --- /dev/null +++ b/raveos-calamares-theme/etc/calamares/modules/raveos-letoltes-beallitas.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -euo pipefail +CONF="${1:-}/etc/pacman.conf" +[ -f "$CONF" ] || exit 0 +if grep -q "^#\?ParallelDownloads" "$CONF"; then + sed -i "s/^#\?ParallelDownloads.*/ParallelDownloads = 5/" "$CONF" +else + sed -i "/^\[options\]/a ParallelDownloads = 5" "$CONF" +fi +grep -q "^DisableDownloadTimeout" "$CONF" || sed -i "/^\[options\]/a DisableDownloadTimeout" "$CONF" +grep -E "^(ParallelDownloads|DisableDownloadTimeout)" "$CONF" |