From bc2952921319076774f891cfe92459a486d3aff0 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Mon, 4 May 2020 13:07:19 +0800 Subject: [PATCH] update --- install.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index a401ad6..6877606 100755 --- a/install.sh +++ b/install.sh @@ -123,17 +123,18 @@ install() { # Edit grub config echo "GRUB_THEME=\"${THEME_DIR}/${name}/theme.txt\"" >> /etc/default/grub - echo "GRUB_GFXMODE=auto" >> /etc/default/grub # Make sure set the right resolution for grub -# if [[ ${screen} == '4k' ]]; then -# echo "GRUB_GFXMODE=3840x2160x32" >> /etc/default/grub -# elif [[ ${screen} == '2k' ]]; then -# echo "GRUB_GFXMODE=2560x1440x32" >> /etc/default/grub -# fi + if [[ ${screen} == '1080p' ]]; then + echo "GRUB_GFXMODE=1920x1080,auto" >> /etc/default/grub + elif [[ ${screen} == '4k' ]]; then + echo "GRUB_GFXMODE=3840x2160,auto" >> /etc/default/grub + elif [[ ${screen} == '2k' ]]; then + echo "GRUB_GFXMODE=2560x1440,auto" >> /etc/default/grub + fi # Update grub config - prompt -i "\n Updating grub config..." + prompt -i "\n Updating grub config...\n" updating_grub else