summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/xconfig.sh
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-05 03:42:26 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-05 03:42:26 (GMT)
commit8a9131c42782f7a06c878d7a31d64ff7aa24ff82 (patch)
tree2be06592f526f86cd57dfefdec8a399d7610391e /abs/core-testing/LinHES-config/xconfig.sh
parentaaaed3a6a08206d2d16665695a622a48da869eaf (diff)
parent3c1ea88bae105c29600c0da55e009e8ef4ea0c45 (diff)
downloadlinhes_pkgbuild-8a9131c42782f7a06c878d7a31d64ff7aa24ff82.zip
linhes_pkgbuild-8a9131c42782f7a06c878d7a31d64ff7aa24ff82.tar.gz
linhes_pkgbuild-8a9131c42782f7a06c878d7a31d64ff7aa24ff82.tar.bz2
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/LinHES-config/xconfig.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/xconfig.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/abs/core-testing/LinHES-config/xconfig.sh b/abs/core-testing/LinHES-config/xconfig.sh
index db03e6f..ef3e836 100755
--- a/abs/core-testing/LinHES-config/xconfig.sh
+++ b/abs/core-testing/LinHES-config/xconfig.sh
@@ -12,8 +12,9 @@ function Xvalues {
VGACARDTYPE=vesa
else
VGACARDTYPE=`lspci|grep -i vga|sort -r|head -n 1| cut -d: -f3|cut -d" " -f 2`
- CARDID=`lspci -n |grep 10de | cut -d" " -f3 |cut -d: -f2 `
- VENDORID=`lspci -n |grep 10de | cut -d" " -f3 |cut -d: -f1`
+ VGAPCIID=`lspci|grep -i vga|sort -r|head -n 1| cut -d" " -f1`
+ CARDID=`lspci -n |grep $VGAPCIID|grep 10de | cut -d" " -f3 |cut -d: -f2 `
+ VENDORID=`lspci -n |grep $VGAPCIID|grep 10de | cut -d" " -f3 |cut -d: -f1`
fi
echo $VGACARDTYPE
currentmode=`cat $BASE/etc/X11/xorg.conf |grep Modes|awk -Fs ' { print $2 } '`
@@ -142,9 +143,9 @@ echo "#doing the advanced" > /tmp/options
HS="#Hsync edid used "
VR="#Vertrefresh edid used "
fi
-
+
echo "Option \"ForceMonitors\" \"$ConnectedMonitor\"" >> /tmp/options
-
+
sed -e "s/^.*Modes.*$/\t $ML/" \
-e "/INSERT MODELINE/r $TEMPLATES/xorg/modeline.$Xcatagory" \
-e "s/^.*DisplaySize.*$/ $DS/" \
@@ -175,13 +176,14 @@ function setupX {
#nvidia check right here
grep -q $CARDID $NVIDIA_96XX
if [ $? = 0 ]
- then
+ then
#install 96xx drivers
- echo "installing nvidia 96xx drivers"
+ echo "installing nvidia 96xx drivers"
pacman --noconfirm -R libgl-dri > /dev/null 2>&1
pacman --noconfirm -S nvidia-96xx nvidia-96xx-utils > /dev/null 2>&1
else
#install latest drivers
+ echo "installing current nvidia drivers"
pacman --noconfirm -R libgl-dri > /dev/null 2>&1
pacman --noconfirm -S nvidia nvidia-utils > /dev/null 2>&1
fi
@@ -214,7 +216,7 @@ function setupX {
*) XCONF=/root/xorg.conf.new
X -configure
grep -v Modes $XCONF | sed -e '/Depth.*16/a Modes "800x600"' -e '/Depth.*24/a Modes "800x600"' -e 's/dev\/mouse/dev\/psaux/g'> $XORG_CONF
- rm -f $XCONF 2>&1 > /dev/null
+ rm -f $XCONF 2>&1 > /dev/null
;;
esac
fi