mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Suppress locale warnings at first run when connecting via SSH (#4976)
* Suppress locale warnings at first run when connecting via SSH * Move functionality to armbian firstlogin and firstrun scripts
This commit is contained in:
5
packages/bsp/common/usr/lib/armbian/armbian-firstlogin
Normal file → Executable file
5
packages/bsp/common/usr/lib/armbian/armbian-firstlogin
Normal file → Executable file
@@ -431,6 +431,11 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
|
||||
printf "\nYou selected \e[0;91mZSH\x1B[0m as your default shell. If you want to use it right away, please logout and login! \n\n"
|
||||
fi
|
||||
|
||||
# re-enable passing locale environment via ssh
|
||||
sed -e '/^#AcceptEnv LANG/ s/^#//' -i /etc/ssh/sshd_config
|
||||
# restart sshd daemon
|
||||
systemctl reload ssh.service
|
||||
|
||||
# rpardini: hacks per-dm, very much legacy stuff that works by a miracle
|
||||
if [[ "${desktop_dm}" == "lightdm" ]] && [ -n "$RealName" ]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user