Skip to content

Commit

Permalink
gdev: further minor fixes to autogen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinpei Kato committed Mar 31, 2012
1 parent 1008090 commit 75262b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/autogen.sh
Expand Up @@ -2,13 +2,10 @@


if [ ! $(lsmod | grep nvidia | wc -l) -eq 0 ] ; then if [ ! $(lsmod | grep nvidia | wc -l) -eq 0 ] ; then
driver='nvi' driver='nvi'
DRIVER='NVI'
elif [ ! $(lsmod | grep nouveau | wc -l) -eq 0 ] ; then elif [ ! $(lsmod | grep nouveau | wc -l) -eq 0 ] ; then
driver='nouveau' driver='nouveau'
DRIVER='NOUVEAU'
elif [ ! $(lsmod | grep pscnv | wc -l) -eq 0 ] ; then elif [ ! $(lsmod | grep pscnv | wc -l) -eq 0 ] ; then
driver='pscnv' driver='pscnv'
DRIVER='PSCNV'
else else
echo "Device driver not found" echo "Device driver not found"
exit exit
Expand All @@ -28,6 +25,8 @@ cat > Driver.mk << EOF
DRIVER_NAME=$driver DRIVER_NAME=$driver
EOF EOF


DRIVER=$(echo $driver | tr "a-z" "A-Z")

# create gdev_autogen.h # create gdev_autogen.h
cat > gdev_autogen.h << EOF cat > gdev_autogen.h << EOF
/* /*
Expand Down

0 comments on commit 75262b4

Please sign in to comment.