Nico why
This commit is contained in:
parent
8e5b36b2bd
commit
5d44aed2ed
2 changed files with 8 additions and 2 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -2,7 +2,7 @@
|
||||||
# Maintainer: Librewish <librewish@gmail.com>
|
# Maintainer: Librewish <librewish@gmail.com>
|
||||||
|
|
||||||
pkgname=garuda-common-settings
|
pkgname=garuda-common-settings
|
||||||
pkgver=2.5.3
|
pkgver=2.5.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
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"
|
||||||
|
|
|
@ -39,7 +39,8 @@ generate_relevant_software() {
|
||||||
|
|
||||||
[ -t 0 ] && inxi -Faz || inxi -Fazc0
|
[ -t 0 ] && inxi -Faz || inxi -Fazc0
|
||||||
echo -e "\033[1;34mGaruda ($(pacman -Q garuda-common-settings | awk '{print $2}')):\033[0m"
|
echo -e "\033[1;34mGaruda ($(pacman -Q garuda-common-settings | awk '{print $2}')):\033[0m"
|
||||||
echo -e "\033[1;34m System install date:\033[0m $(head -n1 /var/log/pacman.log | cut -d " " -f1 | cut -c 2-11)"
|
install_date="$(head -n1 /var/log/pacman.log | cut -d " " -f1 | cut -c 2-11)"
|
||||||
|
echo -e "\033[1;34m System install date:\033[0m ${install_date}"
|
||||||
echo -e "\033[1;34m Last full system update:\033[0m $(date -r /var/lib/garuda/last_update +%F 2> /dev/null || echo "Unknown/Never")"
|
echo -e "\033[1;34m Last full system update:\033[0m $(date -r /var/lib/garuda/last_update +%F 2> /dev/null || echo "Unknown/Never")"
|
||||||
echo -e "\033[1;34m Is partially upgraded: \033[0m $([ -e /var/lib/garuda/partial_upgrade ] && echo Yes || echo No)"
|
echo -e "\033[1;34m Is partially upgraded: \033[0m $([ -e /var/lib/garuda/partial_upgrade ] && echo Yes || echo No)"
|
||||||
generate_relevant_software
|
generate_relevant_software
|
||||||
|
@ -49,3 +50,8 @@ echo -e "\033[1;34m Windows dual boot: \033[0m ${DUALBOOT}"
|
||||||
detect_snapshots
|
detect_snapshots
|
||||||
echo -e "\033[1;34m Snapshots: \033[0m ${SNAPSHOTS}"
|
echo -e "\033[1;34m Snapshots: \033[0m ${SNAPSHOTS}"
|
||||||
echo -e "\033[1;34m Failed units: \033[0m $(systemctl list-units --failed --full --all --plain --no-legend | awk '{printf("%s ",$1)}')"
|
echo -e "\033[1;34m Failed units: \033[0m $(systemctl list-units --failed --full --all --plain --no-legend | awk '{printf("%s ",$1)}')"
|
||||||
|
if [ "$1" == "funstuff" ]; then
|
||||||
|
update_count="$(paclog --grep="starting full system upgrade" | wc -l)"
|
||||||
|
echo -e "\033[1;34m Total system updates: \033[0m ${update_count}"
|
||||||
|
echo -e "\033[1;34m --> Updates per week: \033[0m $(( ${update_count}/(($(date +%s) - $(date --date="$install_date" +%s) )/(60*60*24*7)) ))"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue