Subject: Adding localepurge example hook.

From: Daniel Baumann <[email-masked]>
Date: Mon, 31 Aug 2009 13:58:27 +0200

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