summaryrefslogtreecommitdiff
path: root/examples/hooks/replace-di-banner.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-11 17:25:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:48 +0100
commitdbcae19129fb310cef3330d9e8342602e2845589 (patch)
tree99b53cfa4a94fe2d9cae99e466d63efb06844a64 /examples/hooks/replace-di-banner.sh
parent02fee2236aa2203dbda715ab8c07c7678527f974 (diff)
downloadlive-build-dbcae19129fb310cef3330d9e8342602e2845589.zip
live-build-dbcae19129fb310cef3330d9e8342602e2845589.tar.gz
Renaming example hooks and prefixing them with distribution name.
Diffstat (limited to 'examples/hooks/replace-di-banner.sh')
-rwxr-xr-xexamples/hooks/replace-di-banner.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/examples/hooks/replace-di-banner.sh b/examples/hooks/replace-di-banner.sh
deleted file mode 100755
index 7be8682..0000000
--- a/examples/hooks/replace-di-banner.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-# This is an binary hook for live-helper(7) to overwrite the banner
-# in the graphical Debian Installer.
-# To enable it, copy or symlink this hook into your config/binary_local-hooks
-# directory and add a replacement banner.png at:
-#
-# config/binary_local-includes/binary/install/banner.png
-#
-# The file should be a PNG image of dimensions 800 x 75.
-
-set -e
-
-if [ -e config/binary_debian-installer/banner.png ]
-then
- TARGET_INITRD="binary/install/gtk/initrd.gz"
- REPACK_TMPDIR="binary.initrd"
-
- if [ -e "${TARGET_INITRD}" ]
- then
- # cpio does not have a "extract to directory", so we must change
- # directory
- mkdir -p ${REPACK_TMPDIR}
- cd ${REPACK_TMPDIR}
- gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories --no-absolute-filenames
-
- # Overwrite banner
- cp ../config/binary_debian-installer/banner.png ./usr/share/graphics/logo_debian.png
-
- find | cpio -H newc -o | gzip -9 > ../${TARGET_INITRD}
- cd ..
- rm -rf ${REPACK_TMPDIR}
- fi
-fi