Last change
on this file since 2905 was
1827,
checked in by mabarracus, 5 years ago
|
Final config & renamed scripts
|
-
Property svn:executable set to
*
|
File size:
584 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | set -e |
---|
3 | |
---|
4 | source CONFIG |
---|
5 | source functions |
---|
6 | |
---|
7 | ensure BASE NAME |
---|
8 | |
---|
9 | echo "Setting locale ..." |
---|
10 | |
---|
11 | cat > ./${BASE}/${NAME}/script.sh << _EOF |
---|
12 | |
---|
13 | export DEBIAN_FRONTEND=noninteractive |
---|
14 | |
---|
15 | echo locales locales/default_environment_locale select es_ES.UTF-8 > /tmp/locales.preseed |
---|
16 | |
---|
17 | debconf-set-selections /tmp/locales.preseed |
---|
18 | |
---|
19 | dpkg-reconfigure -u -f noninteractive locales |
---|
20 | |
---|
21 | _EOF |
---|
22 | |
---|
23 | if [ "x${VERBOSE}" = "x0" ]; then |
---|
24 | exec &> /dev/null |
---|
25 | fi |
---|
26 | |
---|
27 | ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash /script.sh |
---|
28 | |
---|
29 | if [ "$?" != "0" ]; then |
---|
30 | exit 1 |
---|
31 | fi |
---|
32 | |
---|
33 | rm -f ./${BASE}/${NAME}/script.sh |
---|
34 | |
---|
35 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.