From 51d7490509b3908658953e62c5c16c26370f495c Mon Sep 17 00:00:00 2001
From: James Meyer <jams@linhes.org>
Date: Sat, 18 Dec 2010 21:44:40 +0000
Subject: linhes-system: add nvidia run settings if the nvidia driver is
 loaded. refs:#732 closes:#732

---
 abs/core/LinHES-system/LinHES-run | 6 ++++++
 abs/core/LinHES-system/PKGBUILD   | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/abs/core/LinHES-system/LinHES-run b/abs/core/LinHES-system/LinHES-run
index ab2f6de..d4fb64d 100755
--- a/abs/core/LinHES-system/LinHES-run
+++ b/abs/core/LinHES-system/LinHES-run
@@ -20,6 +20,12 @@ function msg(){
 #keylaunch &
 #/usr/bin/tilda &
 
+lsmod |cut -f1 -d" " |grep -q nvidia
+if [ $? = 0 ]
+then
+   /usr/bin/nvidia-settings --load-config-only
+fi
+
 #move mouse to corner
 xdotool mousemove 0 0 
 /usr/X11R6/bin/unclutter -root -idle $idle -jitter $jitter -noevents  &
diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index 588fa32..7f998b5 100755
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-system
 pkgver=2
-pkgrel=1
+pkgrel=2
 arch=('i686')
 MVDIR=$startdir/pkg/usr/LH
 BINDIR=$startdir/pkg/usr/bin
@@ -43,7 +43,7 @@ md5sums=('19934a456d0e112298b8aac3279f9a16'
          '76b2637cac0452b3acdbeeb4e8a5474b'
          'c60b6c66f498809a6e5ca18a8c97d336'
          'ccae1296ef248fa52ec3a7cb820a476e'
-         '48c55301daa44f6ad081d3a5dfb34e2c'
+         '41276ef67df0dda6c763d92e5296c641'
          '18a884a73344ff6eb74f63b49745e0f5'
          'dc3eef2a624754e16805d72bbe488b67'
          'dc0be354ce77ba2b89868fc29b942c43'
-- 
cgit v0.12

