diff options
author | theuni <theuni@svn> | 2010-08-30 18:42:39 +0000 |
---|---|---|
committer | theuni <theuni@svn> | 2010-08-30 18:42:39 +0000 |
commit | 2ecfadabb5734ec821474239bc6a1a9990b73e19 (patch) | |
tree | 7007f4f4eb3a3d01ff8f1512ec319bce3ca347f6 /tools | |
parent | 32ee12d5789527d7f109949136f3ca4fe909c5c8 (diff) |
live: lots of cleanup on nvidia script
(cherry picked from commit 835a31d03718a51bec94d284e7586075cbd79f63)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33344 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rw-r--r-- | tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA.sh b/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA.sh index 36ae5f8e4b..0d1536457b 100644 --- a/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA.sh +++ b/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA.sh @@ -2,7 +2,7 @@ #check Nvidia GPU -nvidiaGpuType=lspci -nn | grep '03:00.0' | grep 'nVidia Corporation' +nvidiaGpuType=$(lspci -nn | grep 'VGA' | grep 'nVidia Corporation') if [ ! -n "$nvidiaGpuType" ] ; then exit 0 fi @@ -11,13 +11,12 @@ xbmcUser=$(getent passwd 1000 | sed -e 's/\:.*//') mkdir -p /home/$xbmcUser/.xbmc/userdata -if ! -f /home/$xbmcUser/.xbmc/userdata/advancedsettings.xml ; then +if [ ! -f /home/$xbmcUser/.xbmc/userdata/advancedsettings.xml ] ; then cat > /home/$xbmcUser/.xbmc/userdata/advancedsettings.xml << EOF <advancedsettings> <gputempcommand>echo "$(nvclock -T | sed -ne "s/=> GPU temp.*: \([0-9]\+\).*/\1/p") C"</gputempcommand> - <useddsfanart>true</useddsfanart> </advancedsettings> EOF fi -chown -R $xbmcUser:$xbmcUser /home/$xbmcUser/.xbmc
\ No newline at end of file +chown -R $xbmcUser:$xbmcUser /home/$xbmcUser/.xbmc |