blob: d1cdeb95cba8abd157783595e488891ebc6b997a (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
run_latehook() {
local newroot="/new_root/"
if [[ "${keymap}" = "interactive" ]]; then
echo
echo -n "Please give keymap to use: "
read keymap
fi
if [[ -n "${keymap}" ]]; then
msg ":: Setting keymap for main system to '${keymap}'..."
sed -i "/^KEYMAP=/c KEYMAP=${keymap}" \
"${newroot}/etc/vconsole.conf"
sed -i "/XkbLayout/c Option \"XkbLayout\" \"${keymap}\"" \
"${newroot}/etc/X11/xorg.conf.d/00-keyboard.conf"
fi
if [[ "${timezone}" = "interactive" ]]; then
echo
echo -n "Please give timezone to use: "
read timezone
fi
if [[ -n "${timezone}" ]]; then
if [[ ! -e "${newroot}/usr/share/zoneinfo/${timezone}" ]]; then
timezone="UTC"
fi
msg ":: Setting timezone for main system to '${timezone}'..."
ln -sf "/usr/share/zoneinfo/${timezone}" "${newroot}/etc/localtime"
fi
}
|