From cee83f554f31558e201b7789353da789295c0029 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:33:12 +0300 Subject: [PATCH] --- pika-refind-theme/debian/changelog | 2 +- .../debian/pika-refind-theme.postinst | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/pika-refind-theme/debian/changelog b/pika-refind-theme/debian/changelog index 68e4e02..1d76ae0 100644 --- a/pika-refind-theme/debian/changelog +++ b/pika-refind-theme/debian/changelog @@ -1,4 +1,4 @@ -pika-refind-theme (1.5-99pika1.lunar) lunar; urgency=medium +pika-refind-theme (1.5-99pika2.lunar) lunar; urgency=medium * Fix invalid resolution diff --git a/pika-refind-theme/debian/pika-refind-theme.postinst b/pika-refind-theme/debian/pika-refind-theme.postinst index 0f35144..6082548 100755 --- a/pika-refind-theme/debian/pika-refind-theme.postinst +++ b/pika-refind-theme/debian/pika-refind-theme.postinst @@ -25,3 +25,26 @@ fi grep -qxF 'include refind-dark/refind-dark.conf' $EFI_PATH/EFI/refind/refind.conf || echo 'include refind-dark/refind-dark.conf' >> $EFI_PATH/EFI/refind/refind.conf cp -R /usr/share/pika-refind/theme/* $EFI_PATH/EFI/refind + + +echo "changing up refind_linux.conf" +if /boot/refind_linux.conf | grep amd_pstate +then + ture +else + sed -i "s#root=#amd_pstate=active root=#" /boot/refind_linux.conf +fi + +if /boot/refind_linux.conf | grep nowatchdog +then + ture +else + sed -i "s#root=#nowatchdog root=#" /boot/refind_linux.conf +fi + +if /boot/refind_linux.conf | grep amd_prefcore +then + ture +else + sed -i "s#root=#amd_prefcore=enable root=#" /boot/refind_linux.conf +fi \ No newline at end of file