summaryrefslogtreecommitdiff
path: root/examples/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-08-31 13:58:27 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:46 +0100
commit7c30481bdea8e3e3a99d223b2517729c0f019883 (patch)
treecc718421cab55279127a0de24d1b1d69e26c32ef /examples/hooks
parentbed278a40e5bba64bc28b4eb7f6a06cec76b3cb2 (diff)
downloadlive-build-7c30481bdea8e3e3a99d223b2517729c0f019883.zip
live-build-7c30481bdea8e3e3a99d223b2517729c0f019883.tar.gz
Adding localepurge example hook.
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