2023-10-14 22:38:12 +02:00
|
|
|
super_apply() {
|
2023-10-14 22:38:13 +02:00
|
|
|
pacman -Syyu --noconfirm
|
|
|
|
pacman -S --needed --noconfirm sudo reflector
|
2023-10-14 22:38:12 +02:00
|
|
|
if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then
|
|
|
|
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
|
|
|
reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist
|
|
|
|
else
|
|
|
|
echo "err: reflector already executed -- skipping..."
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp files/pacman.conf /etc/pacman.conf
|
|
|
|
}
|