From 19125b85b9195c6994668547e5bc917c6f42297e Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Fri, 6 Mar 2020 17:15:05 +0800 Subject: [PATCH] update --- install.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 9c5862c..1edd0ef 100755 --- a/install.sh +++ b/install.sh @@ -120,20 +120,18 @@ install() { cp -an /etc/default/grub /etc/default/grub.bak grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_THEME=/d' /etc/default/grub - - if [[ ${screen} != '1080p' ]]; then - grep "GRUB_GFXMODE=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_GFXMODE=/d' /etc/default/grub - fi + grep "GRUB_GFXMODE=" /etc/default/grub 2>&1 >/dev/null && sed -i '/GRUB_GFXMODE=/d' /etc/default/grub # 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} == '4k' ]]; then +# echo "GRUB_GFXMODE=3840x2160x32" >> /etc/default/grub +# elif [[ ${screen} == '2k' ]]; then +# echo "GRUB_GFXMODE=2560x1440x32" >> /etc/default/grub +# fi # Update grub config prompt -i "\n Updating grub config..."