summaryrefslogtreecommitdiff
path: root/examples/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks')
-rwxr-xr-xexamples/hooks/localepurge.sh24
1 files changed, 24 insertions, 0 deletions
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