2021-03-29 08:12:31 -04:00
|
|
|
msg() {
|
|
|
|
ALL_OFF="\e[1;0m"
|
|
|
|
BOLD="\e[1;1m"
|
|
|
|
RED="${BOLD}\e[1;31m"
|
|
|
|
local mesg=$1; shift
|
|
|
|
printf "${RED}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl enable ananicy
|
|
|
|
systemctl enable btrfs-balance.timer
|
|
|
|
systemctl enable btrfs-defrag.timer
|
|
|
|
systemctl enable btrfs-scrub.timer
|
|
|
|
systemctl enable btrfs-trim.timer
|
|
|
|
systemctl enable fstrim.timer
|
|
|
|
systemctl enable grub-btrfs.path
|
2021-03-29 08:12:31 -04:00
|
|
|
systemctl enable haveged
|
|
|
|
systemctl enable irqbalance
|
|
|
|
systemctl enable memavaild
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl enable nohang-desktop
|
2021-03-29 08:12:31 -04:00
|
|
|
systemctl enable preload
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl enable prelockd
|
|
|
|
systemctl enable systemd-swap
|
2021-03-29 08:12:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
msg "Attempting to enable services..."
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl is-active ananicy >/dev/null || systemctl enable ananicy
|
|
|
|
systemctl is-active btrfs-balance.timer >/dev/null || systemctl enable btrfs-balance.timer
|
|
|
|
systemctl is-active btrfs-defrag.timer >/dev/null || systemctl enable btrfs-defrag.timer
|
|
|
|
systemctl is-active btrfs-scrub.timer >/dev/null || systemctl enable btrfs-scrub.timer
|
|
|
|
systemctl is-active btrfs-trim.timer >/dev/null || systemctl enable btrfs-trim.timer
|
|
|
|
systemctl is-active fstrim.timer >/dev/null || systemctl enable fstrim.timer
|
|
|
|
systemctl is-active grub-btrfs.path >/dev/null || systemctl enable grub-btrfs.path
|
2021-03-29 08:12:31 -04:00
|
|
|
systemctl is-active haveged >/dev/null || systemctl enable haveged
|
|
|
|
systemctl is-active irqbalance >/dev/null || systemctl enable irqbalance
|
|
|
|
systemctl is-active memavaild >/dev/null || systemctl enable memavaild
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl is-active nohang-desktop >/dev/null || systemctl enable nohang-desktop
|
2021-03-29 08:12:31 -04:00
|
|
|
systemctl is-active preload >/dev/null || systemctl enable preload
|
2021-04-05 14:52:56 -04:00
|
|
|
systemctl is-active prelockd >/dev/null || systemctl enable prelockd
|
|
|
|
systemctl is-active systemd-swap >/dev/null || systemctl enable systemd-swap
|
2021-03-29 08:12:31 -04:00
|
|
|
|
|
|
|
echo ""
|
2021-04-06 12:50:22 -04:00
|
|
|
msg "Deactivating pacman-init & initializing keyrings"
|
|
|
|
echo ""
|
2021-04-06 12:57:13 -04:00
|
|
|
systemctl disable --now pacman-init
|
2021-04-06 12:50:22 -04:00
|
|
|
pacman-key --init
|
|
|
|
pacman-key --populate chaotic
|
|
|
|
pacman-key --populate archlinux
|
|
|
|
pacman -Qs blackarch-keyring && pacman-key --populate blackarch
|
|
|
|
|
2021-03-29 08:12:31 -04:00
|
|
|
msg "Updating font cache..."
|
|
|
|
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
|
|
|
|
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
|
|
|
|
fc-cache -s >/dev/null
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
msg "Performing misc postinstall operations..."
|
|
|
|
glib-compile-schemas usr/share/glib-2.0/schemas
|
|
|
|
gtk-update-icon-cache -ftq usr/share/icons/hicolor
|
|
|
|
/bin/sh -c 'dconf update'
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
msg "Done!"
|
|
|
|
echo ""
|
|
|
|
}
|