From 795d77497d2fe16a3ed4416ba3491962ceaea54c Mon Sep 17 00:00:00 2001 From: CitromosTea Date: Tue, 7 Jan 2025 21:30:40 +0000 Subject: [PATCH] Upload files to "content" --- content/90-corectrl.rules | 10 ++++++++++ content/amd_mesa_hardveres_codec.sh | 10 ++++++++++ content/qemu | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 content/90-corectrl.rules create mode 100644 content/amd_mesa_hardveres_codec.sh create mode 100644 content/qemu diff --git a/content/90-corectrl.rules b/content/90-corectrl.rules new file mode 100644 index 0000000..56a5175 --- /dev/null +++ b/content/90-corectrl.rules @@ -0,0 +1,10 @@ +polkit.addRule(function(action, subject) { + if ((action.id == "org.corectrl.helper.init" || + action.id == "org.corectrl.helperkiller.init") && + subject.local == true && + subject.active == true && + subject.isInGroup("egon")) { + return polkit.Result.YES; + } +}); + diff --git a/content/amd_mesa_hardveres_codec.sh b/content/amd_mesa_hardveres_codec.sh new file mode 100644 index 0000000..672827d --- /dev/null +++ b/content/amd_mesa_hardveres_codec.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd /tmp/ +git clone https://gitlab.manjaro.org/packages/extra/mesa/ +cd /tmp/mesa/ +sudo sed -i '/-D microsoft-clc=disabled/a -D video-codecs=all' /home/egon/PKGBUILD +#Keresd meg a fájlban ezt a sort: ""-D microsoft-clc=disabled"" \n Alá beillesztés ""-D video-codecs=all""\n aztán mentés. \n ' --width='510' --height='100' +makepkg -si --skippgpcheck --noconfirm1234 +cd /tmp/ +rm -Rf mesa diff --git a/content/qemu b/content/qemu new file mode 100644 index 0000000..77d58c8 --- /dev/null +++ b/content/qemu @@ -0,0 +1,19 @@ +#!/bin/bash + +GUEST_NAME="$1" +HOOK_NAME="$2" +STATE_NAME="$3" +MISC="${@:4}" + +BASEDIR="$(dirname $0)" + +HOOKPATH="$BASEDIR/qemu.d/$GUEST_NAME/$HOOK_NAME/$STATE_NAME" +set -e # If a script exits with an error, we should as well. + +if [ -f "$HOOKPATH" ]; then +eval \""$HOOKPATH"\" "$@" +elif [ -d "$HOOKPATH" ]; then +while read file; do + eval \""$file"\" "$@" +done <<< "$(find -L "$HOOKPATH" -maxdepth 1 -type f -executable -print;)" +fi