summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-06-10 00:18:30 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-06-10 00:18:30 +0000
commitf26cf79d7b95d2407046b4182f88cba5c2ef2e1c (patch)
tree72fcdf0cae538ff9eef6b12f5b499e42b3a0ab86 /livecd-functions.sh
parentChanged basklogin to source .bash_profile, rather than .bashrc (diff)
downloadlivecd-tools-f26cf79d7b95d2407046b4182f88cba5c2ef2e1c.tar.gz
livecd-tools-f26cf79d7b95d2407046b4182f88cba5c2ef2e1c.tar.bz2
livecd-tools-f26cf79d7b95d2407046b4182f88cba5c2ef2e1c.zip
Added quotes to get_video_cards.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/livecd-tools/trunk@57 7bf51bff-881f-0410-a643-fba68b97345e
Diffstat (limited to 'livecd-functions.sh')
-rwxr-xr-xlivecd-functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/livecd-functions.sh b/livecd-functions.sh
index af55c82..67f0819 100755
--- a/livecd-functions.sh
+++ b/livecd-functions.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/livecd-tools/livecd-functions.sh,v 1.4 2005/06/09 15:31:23 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/livecd-tools/livecd-functions.sh,v 1.5 2005/06/10 00:18:30 wolf31o2 Exp $
# Global Variables:
# CDBOOT -- is booting off CD
@@ -49,8 +49,8 @@ nv_gl() {
}
get_video_cards() {
- VIDEO_CARDS=$(/sbin/lspci | grep VGA)
- NUM_CARDS=$(echo ${VIDEO_CARDS} | wc -l)
+ VIDEO_CARDS="$(/sbin/lspci | grep VGA)"
+ NUM_CARDS="$(echo ${VIDEO_CARDS} | wc -l)"
if [ ${NUM_CARDS} -eq 1 ]; then
NVIDIA=$(echo ${VIDEO_CARDS} | grep "nVidia Corporation")
ATI=$(echo ${VIDEO_CARDS} | grep "ATI Technologies")