mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
smoother first login
This commit is contained in:
parent
a170f68ca8
commit
91370ed847
2 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
On the road to 2023.03
|
On the road to 2023.03
|
||||||
Highlights:
|
Highlights:
|
||||||
- linux 6.2.x
|
- linux 6.2.x
|
||||||
- added system wide locales: en_US,de_DE,fr_FR,es_ES,pt_PT,ru_RU
|
- added system wide locales: en_US, de_DE, fr_FR, es_ES, pt_PT, ru_RU
|
||||||
Environment changes:
|
Environment changes:
|
||||||
- implemented emergency shell with messages and with big font detection support
|
- implemented emergency shell with messages and with big font detection support
|
||||||
- implemented new zram routine for all boot types
|
- implemented new zram routine for all boot types
|
||||||
|
|
|
@ -62,8 +62,12 @@ _enter_shell() {
|
||||||
[[ -z $TTY ]] && TTY=$(tty)
|
[[ -z $TTY ]] && TTY=$(tty)
|
||||||
# dbus sources profiles again
|
# dbus sources profiles again
|
||||||
if ! echo "${TTY}" | grep -q pts; then
|
if ! echo "${TTY}" | grep -q pts; then
|
||||||
cd /
|
if ! [[ -e /tmp/.locale ]]; then
|
||||||
|
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mfirst\e[m login setup."
|
||||||
|
else
|
||||||
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
|
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
|
||||||
|
fi
|
||||||
|
cd /
|
||||||
read -r
|
read -r
|
||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
|
@ -153,17 +157,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -e /usr/bin/setup ]]; then
|
if [[ -e /usr/bin/setup ]]; then
|
||||||
|
_local_mode
|
||||||
|
_enter_shell
|
||||||
if ! [[ -e /tmp/.locale ]]; then
|
if ! [[ -e /tmp/.locale ]]; then
|
||||||
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mfirst\e[m login setup."
|
|
||||||
read -r
|
|
||||||
if ! [[ -e /tmp/.locale ]]; then
|
if ! [[ -e /tmp/.locale ]]; then
|
||||||
archboot-locale.sh
|
archboot-locale.sh
|
||||||
cat /etc/motd
|
|
||||||
source /etc/locale.conf
|
source /etc/locale.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
_local_mode
|
|
||||||
_enter_shell
|
|
||||||
if ! [[ -e /tmp/.setup ]]; then
|
if ! [[ -e /tmp/.setup ]]; then
|
||||||
setup
|
setup
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue