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 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 memavaild
|
2021-07-09 03:05:53 -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
|
2021-08-28 12:09:16 -04:00
|
|
|
systemctl --global enable libinput-gestures
|
2021-08-21 01:34:34 -04:00
|
|
|
systemctl --global enable psd
|
2021-07-11 05:42:04 -04:00
|
|
|
}
|
2021-03-29 08:12:31 -04:00
|
|
|
|
|
|
|
post_upgrade() {
|
2021-07-03 09:27:42 -04:00
|
|
|
msg "Attempting to enable services..."
|
2021-07-03 09:32:27 -04:00
|
|
|
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
|
|
|
|
systemctl enable haveged
|
|
|
|
systemctl enable memavaild
|
2021-07-09 03:05:53 -04:00
|
|
|
systemctl enable nohang-desktop
|
2021-07-03 09:32:27 -04:00
|
|
|
systemctl enable preload
|
|
|
|
systemctl enable prelockd
|
2021-08-28 12:09:16 -04:00
|
|
|
systemctl --global enable libinput-gestures
|
2021-08-21 01:34:34 -04:00
|
|
|
systemctl --global enable psd
|
2021-07-03 09:27:42 -04:00
|
|
|
|
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 ""
|
2021-08-06 03:18:33 -04:00
|
|
|
msg "Done!"
|
2021-03-29 08:12:31 -04:00
|
|
|
echo ""
|
|
|
|
}
|