summaryrefslogtreecommitdiff
path: root/archlinux-ignore/setup.sh
blob: f8c2bb99072b6049cbd27e7d5841ad03031c7174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
config=/etc/pacman.conf
if ! grep '^\[multilib\]' $config; then
	echo "[multilib]" >>$config
	echo "Include = /etc/pacman.d/mirrorlist" >>$config
fi
if ! grep '^\[ignore\]' $config; then
	echo "[ignore]" >>$config
	echo "Server = https://ftp.ignore.pl/pacman/\$arch" >>$config
fi
keyrings=/usr/share/pacman/keyrings
curl -s https://ftp.ignore.pl/pacman/public.gpg >$keyrings/ignore.gpg
cat >$keyrings/ignore-trusted <<trusted
E4CA8487EDD0C757273330BD689F26A2F234129A:6:
trusted