Make post-inst messages less spammy
This commit is contained in:
parent
2744f628f7
commit
0e2dae4812
2 changed files with 33 additions and 47 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
pkgname=garuda-common-settings
|
pkgname=garuda-common-settings
|
||||||
pkgver=2.0.3
|
pkgver=2.0.3
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
|
|
|
@ -1,53 +1,39 @@
|
||||||
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() {
|
post_install() {
|
||||||
systemctl enable btrfs-balance.timer
|
systemctl enable btrfs-balance.timer
|
||||||
systemctl enable btrfs-defrag.timer
|
systemctl enable btrfs-defrag.timer
|
||||||
systemctl enable btrfs-scrub.timer
|
systemctl enable btrfs-scrub.timer
|
||||||
systemctl enable btrfs-trim.timer
|
systemctl enable btrfs-trim.timer
|
||||||
systemctl enable fstrim.timer
|
systemctl enable fstrim.timer
|
||||||
systemctl enable grub-btrfs.path
|
systemctl enable grub-btrfs.path
|
||||||
systemctl enable haveged
|
systemctl enable haveged
|
||||||
systemctl enable memavaild
|
systemctl enable memavaild
|
||||||
systemctl enable nohang-desktop
|
systemctl enable nohang-desktop
|
||||||
systemctl enable preload
|
systemctl enable preload
|
||||||
systemctl enable prelockd
|
systemctl enable prelockd
|
||||||
systemctl --global enable psd
|
systemctl --global enable psd
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
msg "Attempting to enable services..."
|
echo "Attempting to enable services..."
|
||||||
systemctl enable btrfs-balance.timer
|
systemctl enable btrfs-balance.timer
|
||||||
systemctl enable btrfs-defrag.timer
|
systemctl enable btrfs-defrag.timer
|
||||||
systemctl enable btrfs-scrub.timer
|
systemctl enable btrfs-scrub.timer
|
||||||
systemctl enable btrfs-trim.timer
|
systemctl enable btrfs-trim.timer
|
||||||
systemctl enable fstrim.timer
|
systemctl enable fstrim.timer
|
||||||
systemctl enable grub-btrfs.path
|
systemctl enable grub-btrfs.path
|
||||||
systemctl enable haveged
|
systemctl enable haveged
|
||||||
systemctl enable memavaild
|
systemctl enable memavaild
|
||||||
systemctl enable nohang-desktop
|
systemctl enable nohang-desktop
|
||||||
systemctl enable preload
|
systemctl enable preload
|
||||||
systemctl enable prelockd
|
systemctl enable prelockd
|
||||||
systemctl --global enable psd
|
systemctl --global enable psd
|
||||||
|
|
||||||
msg "Updating font cache..."
|
echo "Performing misc postinstall operations..."
|
||||||
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
|
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
|
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1
|
||||||
fc-cache -s >/dev/null
|
fc-cache -s >/dev/null
|
||||||
|
|
||||||
echo ""
|
glib-compile-schemas usr/share/glib-2.0/schemas
|
||||||
msg "Performing misc postinstall operations..."
|
gtk-update-icon-cache -ftq usr/share/icons/hicolor
|
||||||
glib-compile-schemas usr/share/glib-2.0/schemas
|
/bin/sh -c 'dconf update'
|
||||||
gtk-update-icon-cache -ftq usr/share/icons/hicolor
|
|
||||||
/bin/sh -c 'dconf update'
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
msg "Done!"
|
|
||||||
echo ""
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue