diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-29 21:42:18 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-29 21:42:18 (GMT) |
commit | 48dbce5fa001f66dd934dfc459838d0f13010443 (patch) | |
tree | 2d00e8279faff7d1afcc4733cfcdf86e6b843882 /abs/mv-core/MythVantage-config/xconfig.sh | |
parent | 1110292b3a2245a2ae0dafa870ca49440aaef8ac (diff) | |
download | linhes_pkgbuild-48dbce5fa001f66dd934dfc459838d0f13010443.zip linhes_pkgbuild-48dbce5fa001f66dd934dfc459838d0f13010443.tar.gz linhes_pkgbuild-48dbce5fa001f66dd934dfc459838d0f13010443.tar.bz2 |
MV support for vesa
Signed-off-by: James Meyer <james.meyer@operamail.com>
Diffstat (limited to 'abs/mv-core/MythVantage-config/xconfig.sh')
-rwxr-xr-x | abs/mv-core/MythVantage-config/xconfig.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/abs/mv-core/MythVantage-config/xconfig.sh b/abs/mv-core/MythVantage-config/xconfig.sh index 42603d6..4984dc5 100755 --- a/abs/mv-core/MythVantage-config/xconfig.sh +++ b/abs/mv-core/MythVantage-config/xconfig.sh @@ -4,10 +4,17 @@ BASE="" #TEMPLATES="/usr/share/templates" function Xvalues { - VGACARDTYPE=`lspci|grep -i vga|sort -r|head -n 1| cut -d: -f3|cut -d" " -f 2` + CMDLINE=$(cat /proc/cmdline) + echo $CMDLINE |grep -q forceXvesa + if [ $? = 0 ] + then + VGACARDTYPE=vesa + else + VGACARDTYPE=`lspci|grep -i vga|sort -r|head -n 1| cut -d: -f3|cut -d" " -f 2` + fi echo $VGACARDTYPE currentmode=`cat $BASE/etc/X11/xorg.conf |grep Modes|awk -Fs ' { print $2 } '` - } +} function presetupX { if [ x$XUseAdvanced = x1 ] @@ -192,6 +199,9 @@ function setupX { fi ;; + vesa) sed -e "s/^.*Modes.*$/\t Modes \"${Xres}\"/" $TEMPLATES/xorg/xorg.conf.vesa > $XORG_CONF + + *) #XCONF=`hwd -x |grep etc` XCONF=`hwd -x |grep etc|tr -d [:cntrl:]|cut -d\/ -f 2-` |