summaryrefslogtreecommitdiff
path: root/auto/config
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 02:19:12 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-06 02:19:12 +0200
commite4c21b3c01ba37cec58076d17ba123b83dd52ccd (patch)
treeb7900e5bdc9c901e6b89058dbb033ca2cef0a151 /auto/config
parentfb6db08732a15920cbd05bfbf62e332fc0f29127 (diff)
downloadkanotix-e4c21b3c01ba37cec58076d17ba123b83dd52ccd.zip
kanotix-e4c21b3c01ba37cec58076d17ba123b83dd52ccd.tar.gz
added download of nvidia drivers into chroot
Diffstat (limited to 'auto/config')
-rwxr-xr-xauto/config12
1 files changed, 12 insertions, 0 deletions
diff --git a/auto/config b/auto/config
index 5441557..d3e8652 100755
--- a/auto/config
+++ b/auto/config
@@ -57,3 +57,15 @@ mkdir -p config/chroot_local-includes/usr/local/bin
grep -oe '^[^ #]*' scripts.urls | wget -i- -c -N -q -P config/chroot_local-includes/usr/local/bin
chmod 755 config/chroot_local-includes/usr/local/bin/*.sh
+# Include nvidia-driver into chroot
+if [ -f config/chroot_local-includes/usr/local/bin/install-nvidia-debian.sh ]; then
+ mkdir -p config/chroot_local-includes/usr/src
+ VER="$(grep -o ^VER=.* config/chroot_local-includes/usr/local/bin/install-nvidia-debian.sh|sed s/VER=//)"
+ ARCH=; [ "$LH_ARCHITECTURE" = "amd64" ] && ARCH="_64"
+ URL="http://download.nvidia.com/XFree86/Linux-x86$ARCH/$VER/NVIDIA-Linux-x86$ARCH-$VER.run"
+ CACHEURL="cache/$(basename "$URL")"
+ [ "$LH_CACHE" = "false" ] && CACHEURL="config/chroot_local-includes/usr/src/$(basename "$URL")"
+ [ ! -e "$CACHEURL" ] && wget -O"$CACHEURL" "$URL"
+ cp "$CACHEURL" "config/chroot_local-includes/usr/src/$(basename "$URL")" 2>/dev/null
+fi
+