From 15c548168e4a3d66b12a4c94b608ca8c023ae2ee Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 20 May 2022 21:02:56 +0200 Subject: [PATCH] add -launch-kde option --- usr/lib/archboot/update-installer.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 4e56de487..3dc8a20bf 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -30,6 +30,11 @@ usage () { echo -e " \033[1m-launch-xfce\033[0m Launch XFCE desktop with VNC sharing enabled." echo "" fi + if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 3500000 &&\ + -e /usr/bin/setup && ! -e /var/cache/pacman/pkg/archboot.db ]]; then + echo -e " \033[1m-launch-xfce\033[0m Launch XFCE desktop with VNC sharing enabled." + echo "" + fi if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 3900000 &&\ -e /usr/bin/archboot-"${_RUNNING_ARCH}"-release.sh ]]; then echo -e " \033[1m-latest-image\033[0m Generate latest image files in /archboot directory"