mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
25 lines
584 B
Bash
25 lines
584 B
Bash
#!/bin/sh
|
|
# stdin: default config
|
|
# stdout: modified config
|
|
set -e
|
|
|
|
# save stdin (content of /etc/mkinitcpio.conf) in variable
|
|
stdin="$(cat)"
|
|
|
|
# Enable parallel downloads
|
|
echo "$stdin" | sed 's|^#ParallelDownloads\s*=.*$|ParallelDownloads = 4|'
|
|
|
|
printf '\n'
|
|
|
|
# Assert multilib is not enabled
|
|
! echo "$stdin" | grep --quiet '^\[multilib\].*$'
|
|
|
|
# Enable multilib repository
|
|
printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
|
|
|
|
# de-p1st mirror
|
|
printf 'Include = /etc/pacman.d/de-p1st\n'
|
|
|
|
# home_ungoogled_chromium_Arch mirror
|
|
printf 'Include = /etc/pacman.d/ungoogled-chromium\n'
|