fix policykit typos && and fix yum repo file name

This commit is contained in:
Ward from fusion-voyager-3 2024-06-23 19:53:12 +03:00
parent 6fe0e8c819
commit fd1fac0bec
8 changed files with 11 additions and 9 deletions

BIN
core

Binary file not shown.

View File

@ -10,7 +10,7 @@
{
"name": "CachyOS LTS Kernel",
"main_package": "kernel-cachyos-lts",
"packages": "kernel-cachyos kernel-cachyos-devel-matched",
"packages": "kernel-cachyos-lts kernel-cachyos-lts-devel-matched",
"min_x86_march": "2"
},
{

View File

@ -12,7 +12,7 @@
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/scripts/change_scx.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/change_scx.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>

View File

@ -12,7 +12,7 @@
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/scripts/kernel-cachyos-init.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/kernel-cachyos-init.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>

View File

@ -12,7 +12,7 @@
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/scripts/modify_package.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/fedora-kernel-manager/scripts/modify_package.sh</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>

Binary file not shown.

View File

@ -1,16 +1,18 @@
#!/bin/bash
YUM_CHANGED=false
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'
if [ ! -f /etc/yum.repos.d/bieszczaders-kernel-cachyos-fedora-$(rpm -E %fedora).repo ]
if [ ! -f $KERNEL_CACHYOS_REPO_FILE ]
then
wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/bieszczaders-kernel-cachyos-fedora-$(rpm -E %fedora).repo
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
YUM_CHANGED=true
fi
if [ ! -f /etc/yum.repos.d/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo ]
if [ ! -f $KERNEL_CACHYOS_ADDONS_REPO_FILE ]
then
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 /etc/yum.repos.d/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo
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
YUM_CHANGED=true
fi

View File

@ -3,7 +3,7 @@
Name: fedora-kernel-manager
Version: %{pkg_release}
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
Group: System Environment/Libraries
Summary: A Libadwaita rust based application for managing and installing kernels.