From 7c30481bdea8e3e3a99d223b2517729c0f019883 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 31 Aug 2009 13:58:27 +0200 Subject: Adding localepurge example hook. --- examples/hooks/localepurge.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 examples/hooks/localepurge.sh diff --git a/examples/hooks/localepurge.sh b/examples/hooks/localepurge.sh new file mode 100755 index 0000000..c1f5ea9 --- /dev/null +++ b/examples/hooks/localepurge.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# This is a hook for live-helper(7) to install localepurge. +# To enable it, copy or symlink this hook into your config/chroot_local-hooks +# directory. +# + +apt-get install --yes localepurge + +cat > /tmp/localepurge.preseed << EOF +localepurge localepurge/nopurge en +#localepurge localepurge/mandelete true +#localepurge localepurge/dontbothernew false +localepurge localepurge/showfreedspace false +#localepurge localepurge/quickndirtycalc true +#localepurge localepurge/verbose false +EOF + +debconf-set-selections < /tmp/localepurge.preseed +rm -f /tmp/localepurge.preseed + +dpkg-reconfigure localepurge + +localepurge -- cgit v1.0