summaryrefslogtreecommitdiff
path: root/build_gfxoverlay.sh
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-02-16 09:47:01 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-02-16 10:44:02 +0100
commit24fbdd0aa2dddd72016a0608ba23b178dd995509 (patch)
tree1edc362e464af7b15e0a2063a4d9345315e6250a /build_gfxoverlay.sh
parent1905b62b681f4bdd1e407729c81d4b5564486b1e (diff)
downloadkanotix-24fbdd0aa2dddd72016a0608ba23b178dd995509.zip
kanotix-24fbdd0aa2dddd72016a0608ba23b178dd995509.tar.gz
added gfxoverlay auto script
Diffstat (limited to 'build_gfxoverlay.sh')
-rwxr-xr-xbuild_gfxoverlay.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_gfxoverlay.sh b/build_gfxoverlay.sh
index 69212dd..6b8632d 100755
--- a/build_gfxoverlay.sh
+++ b/build_gfxoverlay.sh
@@ -22,8 +22,8 @@ if [ ! -x chroot/bin/bash ]; then
exit 4
fi
bit="$(file chroot/bin/true | grep -q 'ELF 64-bit' && echo 64 || echo 32)"
-if [ -d "overlay$bit-$drv-$ver" -a -z "$OVERWRITE" ]; then
- echo "Error: overlay \"overlay$bit-$drv-$ver\" already exists."
+if [ -d "${CACHE}overlay$bit-$drv-$ver" -a -z "$OVERWRITE" ]; then
+ echo "Error: overlay \"${CACHE}overlay$bit-$drv-$ver\" already exists."
exit 5
fi
mkdir -p overlay root
@@ -90,5 +90,5 @@ rm -rf usr/sbin/update-initramfs etc/resolv.conf usr/src/NVIDIA-Linux* usr/src/a
rm -f etc/X11/xorg.conf.1st
printf 'Section "Device"\n Identifier "Device0"\n Driver "'"$drv"'"\nEndSection\n' > etc/X11/xorg.conf
cd ..
-mv overlay "overlay$bit-$drv-$ver"
+mv overlay "${CACHE}overlay$bit-$drv-$ver"