瀏覽代碼

gein.sh: Don't allow VideoCards='false' & minimal||complete

If a user sets VideoCards to 'false', most likely they don't want a
gui and have selected the improper option. Rather than reaching the
DESKTOP() function and letting emerge error out, prompt the user to
either set VideoCards to allow xorg-drivers to be installed or don't
attempt to install a desktop.
master
jcmdln 2 年之前
父節點
當前提交
7f3d430a9e
共有 1 個文件被更改,包括 29 次插入6 次删除
  1. 29
    6
      gein.sh

+ 29
- 6
gein.sh 查看文件

@@ -421,12 +421,35 @@ POSTINSTALL() {

shopt -s nocasematch
case $1 in
bootstrap) BOOTSTRAP ;;
base) BASE && POSTINSTALL;;
minimal) DesktopChoice="@gein-minimal"
BASE && DESKTOP && POSTINSTALL;;
complete) DesktopChoice="@gein-complete"
BASE && DESKTOP && POSTINSTALL;;
bootstrap)
BOOTSTRAP
;;

base)
BASE && POSTINSTALL
;;

minimal)
if [ $VideoCards == 'false' ]; then
echo "gein: VideoCards is false, though this requires xorg drivers"
echo "gein: Exiting..."
exit
fi

DesktopChoice="@gein-minimal"
BASE && DESKTOP && POSTINSTALL
;;

complete)
if [ $VideoCards == 'false' ]; then
echo "gein: VideoCards is false, though this requires xorg drivers"
echo "gein: Exiting..."
exit
fi

DesktopChoice="@gein-complete"
BASE && DESKTOP && POSTINSTALL
;;

*)
echo "gein: Linux-based derivative of Gentoo"

Loading…
取消
儲存