diff options
Diffstat (limited to 'abs/core/LinHES-config/xconfig.sh')
-rwxr-xr-x | abs/core/LinHES-config/xconfig.sh | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/abs/core/LinHES-config/xconfig.sh b/abs/core/LinHES-config/xconfig.sh index 2c8c86d..52dc952 100755 --- a/abs/core/LinHES-config/xconfig.sh +++ b/abs/core/LinHES-config/xconfig.sh @@ -21,6 +21,7 @@ home_check function Xvalues { + echo $VGACARDTYPE if [ "x$VGACARDTYPE" = "x" ] then CMDLINE=$(cat /proc/cmdline) @@ -59,7 +60,7 @@ function presetupX { } function nvidia_prepare { - for i in mesa-libgl nvidia nvidia-utils nvidia-173xx nvidia-173xx-utils nvidia-96xx nvidia-96xx-utils + for i in mesa-libgl nvidia nvidia-utils nvidia-libgl nvidia-173xx nvidia-173xx-utils nvidia-96xx nvidia-96xx-utils do pacman --noconfirm -Rdd $i >> $LOGFILE 2>&1 done @@ -86,10 +87,17 @@ function nvidia_driver_install { echo "Installing Nvidia driver" cp "$TEMPLATES/xorg/xorg.nvidia" $BASE/etc/X11/xorg.conf.d/20-automv.conf #install latest drivers - pkg_check nvidia-utils - echo "Installing current nvidia drivers" + LIST="nvidia nvidia-libgl nvidia-utils" + for i in `echo ${LIST}` + do + pkg_check $i + done + #this is used to remove nvidia nvidia_prepare - pacman --noconfirm -S nvidia nvidia-utils >> $LOGFILE 2>&1 + for i in `echo ${LIST}` + do + pacman -S --noconfirm $i >> $LOGFILE 2>&1 + done installed=1 echo "/usr/lib/libXvMCNVIDIA_dynamic.so.1" > "$XVMC_CONFIG" } @@ -97,31 +105,37 @@ function nvidia_driver_install { function vmware_driver_install { echo "Installing VMware driver" echo "Installing VMware driver" >> $LOGFILE 2>&1 - LIST="xf86-input-vmmouse xf86-video-vmware xf86-video-vesa svga-dri" + LIST="xf86-input-vmmouse xf86-video-vmware xf86-video-vesa svga-dri mesa-libgl" for i in `echo ${LIST}` do pkg_check $i done + #this is used to remove nvidia + nvidia_prepare for i in `echo ${LIST}` do pacman -S --noconfirm $i >> $LOGFILE 2>&1 done - } function vesa_driver_install { echo "Installing Vesa driver" echo "Installing Vesa driver" >> $LOGFILE 2>&1 - pacman -S --noconfirm xf86-video-vesa >> $LOGFILE 2>&1 + pkg_check xf86-video-vesa + pkg_check mesa-libgl + #this is used to remove nvidia + nvidia_prepare + pacman -S --noconfirm xf86-video-vesa mesa-libgl >> $LOGFILE 2>&1 } function intel_driver_install { echo "Installing Intel driver" echo "Installing Intel driver" >> $LOGFILE 2>&1 pkg_check xf86-video-intel + pkg_check mesa-libgl #this is used to remove nvidia nvidia_prepare - pacman -S --noconfirm xf86-video-intel >> $LOGFILE 2>&1 + pacman -S --noconfirm xf86-video-intel mesa-libgl >> $LOGFILE 2>&1 echo "/usr/lib/libIntelXvMC.so.1" > "$XVMC_CONFIG" } |