diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-05-30 10:37:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-05-30 10:37:27 +0100 |
commit | 3a839540cfa8f2de1ade313ef82e74489371393d (patch) | |
tree | e59bf52e8dd50f36e35b135038ed270db4cbaa04 | |
parent | 7075a175aa176edbf57bc396f5571cd836e9879d (diff) |
fix live locale (I hope)
-rwxr-xr-x | redcorelive-openrc.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/redcorelive-openrc.sh b/redcorelive-openrc.sh index 04d8e3d..73b8e19 100755 --- a/redcorelive-openrc.sh +++ b/redcorelive-openrc.sh @@ -22,7 +22,7 @@ redcore_add_live_user() { redcore_live_user_groups() { for group in tty disk lp wheel uucp console audio cdrom tape kvm cdemu video cdrw usb plugdev messagebus portage ; do - gpasswd -a "$liveuser" "$group" > /dev/null 2>&1 + /usr/bin/gpasswd -a "$liveuser" "$group" > /dev/null 2>&1 done } @@ -34,8 +34,11 @@ redcore_live_locale_switch() { export local keymap_toset="$(cat /proc/cmdline | cut -d " " -f5 | cut -d "=" -f2)" export local lang_toset="$(cat /proc/cmdline | cut -d " " -f6 | cut -d "=" -f2)" if [[ "$lang_toset" != "en_US.utf8" ]] || [[ "$keymap_toset" != "us" ]] ; then - export LANG="$lang_toset" > /dev/null 2>&1 sed -i "s/keymap=\"us\"/keymap=\"$keymap_toset\"/g" /etc/conf.d/keymaps > /dev/null 2>&1 + /usr/bin/eselect locale set "$lang_toset" > /dev/null 2>&1 + /usr/sbin/env-update --no-ldconfig > /dev/null 2>&1 + else + /usr/bin/eselect locale set "en_US.utf8" > /dev/null 2>&1 /usr/sbin/env-update --no-ldconfig > /dev/null 2>&1 fi } |