summaryrefslogtreecommitdiff
path: root/examples/hooks/localepurge.sh
blob: c1f5ea973bfe5e56c53a36d5739deb09a872771e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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