diff --git a/scripts/config/chroot.sh b/scripts/config/chroot.sh index d11fa13a1d1ca73be977d901b03f15fca2aea652..9533fd7792f3f4dcd42814944e9095b8b5704383 100755 --- a/scripts/config/chroot.sh +++ b/scripts/config/chroot.sh @@ -31,9 +31,11 @@ chkconfig --add extend-root.sh chkconfig extend-root.sh on cd - ln -s /lib/firmware /etc/firmware +if [ -f /etc/locale.conf ]; then + sed -i -e "s/^LANG/#LANG/" /etc/locale.conf +fi if [ "x$1" == "xxfce" ] || [ "x$1" == "xukui" ] || [ "x$1" == "xdde" ]; then - if [ -f /etc/locale.conf ]; then - sed -i -e "s/^LANG/#LANG/" /etc/locale.conf - fi echo 'LANG="zh_CN.UTF-8"' >> /etc/locale.conf +else + echo 'LANG="en_US.utf8"' >> /etc/locale.conf fi