From b314a567cb443d434fee8b80c24bccfc699da261 Mon Sep 17 00:00:00 2001 From: RP1 Date: Tue, 11 Mar 2025 17:50:54 +0000 Subject: [PATCH] Add post-install.sh --- post-install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 post-install.sh diff --git a/post-install.sh b/post-install.sh new file mode 100644 index 0000000..084e942 --- /dev/null +++ b/post-install.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +echo "[User] +Session= +Icon=/usr/share/backgrounds/rave-pp.png +SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER + +# Adding ucode to boot entries - Credit Lordify +CPU=$(lscpu | grep "AMD" -c) + if [[ $CPU -gt 0 ]]; then + echo "initrd /amd-ucode.img" | sudo tee -a /boot/loader/entries/linux-zen.conf + else + echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/linux-zen.conf + fi + +flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo + +reboot \ No newline at end of file