diff --git a/script/config/raspi_image/chroot.sh b/script/config/raspi_image/chroot.sh index 2652fab099d0023c1b3f7994b87bcd87eda79127..f950316015994baa45bbd4b8d703f4a0d3fa23e0 100755 --- a/script/config/raspi_image/chroot.sh +++ b/script/config/raspi_image/chroot.sh @@ -5,6 +5,8 @@ systemctl enable hciuart systemctl enable haveged echo openEuler > /etc/hostname echo "openeuler" | passwd --stdin root +useradd -m -G "wheel" -s "/bin/bash" pi +echo "raspberry" | passwd --stdin pi if [ -f /usr/share/zoneinfo/Asia/Shanghai ]; then if [ -f /etc/localtime ]; then rm -f /etc/localtime @@ -19,4 +21,8 @@ chmod +x extend-root.sh chkconfig --add extend-root.sh chkconfig extend-root.sh on cd - -ln -s /lib/firmware /etc/firmware \ No newline at end of file +ln -s /lib/firmware /etc/firmware +if [ -f /etc/locale.conf ]; then + sed -i -e "s/^LANG/#LANG/" /etc/locale.conf +fi +echo 'LANG="en_US.utf8"' >> /etc/locale.conf