diff options
Diffstat (limited to 'installer.sh.in')
-rw-r--r-- | installer.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installer.sh.in b/installer.sh.in index 4bbd9ab..5aa5ce9 100644 --- a/installer.sh.in +++ b/installer.sh.in @@ -291,7 +291,8 @@ menu_keymap() { set_keymap() { local KEYMAP=$(get_option KEYMAP) - if [ -f "/etc/vconsole.conf" ]; then + + if [ -f /etc/vconsole.conf ]; then sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/vconsole.conf else sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/rc.conf @@ -319,6 +320,7 @@ menu_locale() { set_locale() { local LOCALE=$(get_option LOCALE) + sed -i -e "s|LANG=.*|LANG=$LOCALE|g" $TARGETDIR/etc/locale.conf # Uncomment locale from /etc/default/libc-locales and regenerate it. sed -e "/${LOCALE}/s/^\#//" -i $TARGETDIR/etc/default/libc-locales |