automatically enable arch repositories on artix

This commit is contained in:
Luke Smith 2021-09-28 12:06:40 -04:00
parent 452e8cd717
commit f6beb58f41
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -64,10 +64,22 @@ adduserandpass() { \
unset pass1 pass2 ;} unset pass1 pass2 ;}
refreshkeys() { \ refreshkeys() { \
case "$(readlink -f /sbin/init)" in
*systemd* )
dialog --infobox "Refreshing Arch Keyring..." 4 40 dialog --infobox "Refreshing Arch Keyring..." 4 40
pacman -Q artix-keyring >/dev/null 2>&1 && pacman --noconfirm -S artix-keyring artix-archlinux-support >/dev/null 2>&1
pacman --noconfirm -S archlinux-keyring >/dev/null 2>&1 pacman --noconfirm -S archlinux-keyring >/dev/null 2>&1
} ;;
*)
dialog --infobox "Enabling Arch Repositories..." 4 40
pacman --noconfirm --needed -S artix-keyring artix-archlinux-support >/dev/null 2>&1
for repo in extra community; do
grep -q "^[$repo]" /etc/pacman.conf ||
echo "[$repo]
Include = /etc/pacman.d/mirrorlist-arch" >> /etc/pacman.conf
done
pacman-key --populate archlinux
;;
esac ;}
newperms() { # Set special sudoers settings for install (or after). newperms() { # Set special sudoers settings for install (or after).
sed -i "/#LARBS/d" /etc/sudoers sed -i "/#LARBS/d" /etc/sudoers