upstream 5.1 sample config
[automated-distro-installer] / fai / config / scripts / CENTOS / 50-sysconfig
1 #! /bin/bash
2
3 # (c) Michael Goetze, 2011, mgoetze@mgoetze.net
4
5 error=0 ; trap "error=$((error|1))" ERR
6
7 cat > $target/etc/sysconfig/clock <<-EOF
8 UTC=$UTC
9 ZONE=$TIMEZONE
10 EOF
11 cat > $target/etc/sysconfig/i18n <<-EOF
12 LANG="$DEFAULTLOCALE"
13 SUPPORTED="$SUPPORTEDLOCALE"
14 SYSFONT="$CONSOLEFONT"
15 EOF
16 cat > $target/etc/sysconfig/keyboard <<-EOF
17 KEYBOARDTYPE="pc"
18 KEYTABLE="$KEYMAP"
19 EOF
20
21 if [ -f $target/usr/lib/locale/locale-archive.tmpl \
22 -a ! -s $target/usr/lib/locale/locale-archive ]; then
23 mv $target/usr/lib/locale/locale-archive.tmpl $target/usr/lib/locale/locale-archive
24 fi
25
26 fcopy -iv /etc/sysconfig/i18n /etc/sysconfig/keyboard
27
28 exit $error