static usb ethnet addresses
[automated-distro-installer] / fai / config / scripts / ROCKY / 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 # can not be used, because we still not use systemd in FAI
22 # $ROOTCMD localectl set-locale LANG=$DEFAULTLOCALE
23
24 cat > $target/etc/locale.conf <<-EOF
25 LANG="$DEFAULTLOCALE"
26 EOF
27 if [ -f $target/usr/lib/locale/locale-archive.tmpl \
28 -a ! -s $target/usr/lib/locale/locale-archive ]; then
29 mv $target/usr/lib/locale/locale-archive.tmpl $target/usr/lib/locale/locale-archive
30 fi
31
32 fcopy -iv /etc/sysconfig/i18n /etc/sysconfig/keyboard
33
34 exit $error
35