diff options
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 |