2024-06-19 20:52:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
YUM_CHANGED=false
|
2024-06-23 18:53:12 +02:00
|
|
|
KERNEL_CACHYOS_REPO_FILE='/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos.repo'
|
|
|
|
KERNEL_CACHYOS_ADDONS_REPO_FILE='/etc/yum.repos.d/_copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-addons.repo'
|
2024-06-19 20:52:05 +02:00
|
|
|
|
2024-06-23 18:53:12 +02:00
|
|
|
if [ ! -f $KERNEL_CACHYOS_REPO_FILE ]
|
2024-06-19 20:52:05 +02:00
|
|
|
then
|
2024-06-23 18:53:12 +02:00
|
|
|
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-fedora-$(rpm -E %fedora).repo -O $KERNEL_CACHYOS_REPO_FILE
|
2024-06-19 20:52:05 +02:00
|
|
|
YUM_CHANGED=true
|
|
|
|
fi
|
|
|
|
|
2024-06-23 18:53:12 +02:00
|
|
|
if [ ! -f $KERNEL_CACHYOS_ADDONS_REPO_FILE ]
|
2024-06-19 20:52:05 +02:00
|
|
|
then
|
2024-06-23 18:53:12 +02:00
|
|
|
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo -O $KERNEL_CACHYOS_ADDONS_REPO_FILE
|
2024-06-19 20:52:05 +02:00
|
|
|
YUM_CHANGED=true
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ YUM_CHANGED == true ]
|
|
|
|
then
|
|
|
|
dnf repoquery
|
|
|
|
fi
|