diff options
author | Eric Hameleers <alien@slackware.com> | 2017-01-01 23:03:24 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2017-01-01 23:03:24 +0100 |
commit | d68ea8a85d0ef3f7aaaf9ce2bf7bc7da5480e449 (patch) | |
tree | 32fdc8db7d312c806dd3957fef96cbd2f2640b4c | |
parent | 037d42a37e01ee3fc18327462daa8971d9996a96 (diff) | |
download | liveslak-d68ea8a85d0ef3f7aaaf9ce2bf7bc7da5480e449.tar.gz liveslak-d68ea8a85d0ef3f7aaaf9ce2bf7bc7da5480e449.tar.xz |
DLACK: create a default config for localectl.
Diffstat (limited to '')
-rwxr-xr-x | liveinit | 2 | ||||
-rwxr-xr-x | make_slackware_live.sh | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -814,6 +814,7 @@ if [ -x /usr/bin/loadkeys ]; then fi EOT chmod 755 /mnt/overlay/etc/rc.d/rc.keymap + echo "KEYMAP=${KEYMAP}" > /mnt/overlay/etc/vconsole.conf fi if [ ! -z "$KEYMAP" -o ! -z "$XKB" ]; then # Set a keyboard mapping in X.Org, derived from the console map if needed: @@ -890,6 +891,7 @@ EOT # Configure custom locale: echo "${MARKER}: Switching to '$LOCALE' locale" sed -i -e "s/^ *export LANG=.*/export LANG=${LOCALE}/" /mnt/overlay/etc/profile.d/lang.sh + echo "LANG=${LOCALE}" > /mnt/overlay/etc/locale.conf fi if [ ! -z "$TZ" -a -f /mnt/overlay/usr/share/zoneinfo/${TZ} ]; then diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 998cd4d..62e8cf5 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1129,6 +1129,7 @@ if grep -q "^ *export LANG=" ${LIVE_ROOTDIR}/etc/profile.d/lang.sh ; then else echo "export LANG=en_US.UTF-8" >> ${LIVE_ROOTDIR}/etc/profile.d/lang.sh fi +echo "LANG=en_US.UTF-8" > ${LIVE_ROOTDIR}/etc/locale.conf # Set timezone to UTC: cp -a ${LIVE_ROOTDIR}/usr/share/zoneinfo/UTC ${LIVE_ROOTDIR}/etc/localtime |