diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2012-02-16 09:47:01 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2012-02-16 10:44:02 +0100 |
commit | 24fbdd0aa2dddd72016a0608ba23b178dd995509 (patch) | |
tree | 1edc362e464af7b15e0a2063a4d9345315e6250a /config | |
parent | 1905b62b681f4bdd1e407729c81d4b5564486b1e (diff) | |
download | kanotix-24fbdd0aa2dddd72016a0608ba23b178dd995509.zip kanotix-24fbdd0aa2dddd72016a0608ba23b178dd995509.tar.gz |
added gfxoverlay auto script
Diffstat (limited to 'config')
-rwxr-xr-x | config/binary_local-hooks/gfxoverlays | 20 | ||||
-rw-r--r-- | config/gfxoverlays/versions | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/config/binary_local-hooks/gfxoverlays b/config/binary_local-hooks/gfxoverlays new file mode 100755 index 0000000..4341113 --- /dev/null +++ b/config/binary_local-hooks/gfxoverlays @@ -0,0 +1,20 @@ +#!/bin/bash +[ -e config/gfxoverlays/versions ] || exit 0 +. config/kanotix +[ "$LB_KANOTIX_GFXOVERLAYS" = "true" ] || exit 0 +export CACHE=cache/gfxoverlays/ +mkdir -p $CACHE +bit="$(file chroot/bin/true | grep -q 'ELF 64-bit' && echo 64 || echo 32)" +UPDATE= +DIRS= +while read drv ver +do +./build_gfxoverlay.sh $drv $ver && UPDATE=1 +DIRS+="${CACHE}overlay$bit-$drv-$ver " +done < <(cut -d'#' -f1 config/gfxoverlays/versions | grep .) +if [ ! -e "$CACHE/overlay.$bit.squashfs" -o "$UPDATE" ]; then + rm -f "$CACHE/overlay.$bit.squashfs" + mksquashfs $DIRS "$CACHE/overlay.$bit.squashfs" +fi +mkdir -p binary/gfxoverlay +cp "$CACHE/overlay.$bit.squashfs" binary/gfxoverlay/ diff --git a/config/gfxoverlays/versions b/config/gfxoverlays/versions new file mode 100644 index 0000000..90c8ea2 --- /dev/null +++ b/config/gfxoverlays/versions @@ -0,0 +1,4 @@ +nvidia 295.17 +nvidia 96.43.20 +nvidia 173.14.31 +fglrx 12-1 |