arch/pkg/de-p1st-pacman/pacman.conf.holoscript
2021-09-10 16:02:25 +02:00

22 lines
579 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|'
# Assert multilib is not enabled
! echo "$stdin" | grep --quiet '^\[multilib\].*$'
# Enable multilib repository
printf '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
# de-p1st and home_ungoogled_chromium_Arch mirror
printf '\n'
printf 'Include = /etc/pacman.d/de-p1st\n'
printf 'Include = /etc/pacman.d/ungoogled-chromium\n'