Преглед на файлове

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…
Отказ
Запис