1
0
mirror of synced 2026-05-03 23:08:47 +00:00
Files
xen-tools.xen-tools/hooks/debian/95-configure-locales
Stéphane Jourdois bd840ba071 Replace tabs with spaces
This makes t/no-tabs.t pass.
I'm responsible for some tabs in previous patches, so this
fixes mine also :)

Note that I find this test silly, but "dura lex, sed lex"...
2010-07-16 16:27:42 +02:00

47 lines
623 B
Bash
Executable File

#!/bin/sh
#
# This script ensures the new image has locales setup correctly.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Source our common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
. /usr/lib/xen-tools/common.sh
else
. ./hooks/common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Default to the same locale as the host.
#
if [ -e /etc/locale.gen ]; then
cp /etc/locale.gen ${prefix}/etc
fi
#
# Install the package
#
installDebianPackage ${prefix} locales
installDebianPackage ${prefix} util-linux-locales
#
# Log our finish
#
logMessage Script $0 finished.