only run launcher once

This commit is contained in:
Tobias Powalowski 2023-07-19 21:51:19 +02:00
parent 7ec96606d5
commit 18b0e65fa5
3 changed files with 10 additions and 10 deletions

View file

@ -4,15 +4,6 @@
. /usr/lib/archboot/basic-common.sh
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Launcher"
_show_login() {
[[ -e /.launcher-running ]] && rm /.launcher-running
clear
echo ""
agetty --show-issue
echo ""
cat /etc/motd
}
_check_desktop() {
_DESKTOP=()
update | grep -q Gnome && _DESKTOP+=( "GNOME" "Simple Beautiful Elegant" )

View file

@ -21,6 +21,15 @@ _dialog() {
return $?
}
_show_login() {
[[ -e "/.${_ANSWER}-running" ]] && rm "/.${_ANSWER}-running"
clear
echo ""
agetty --show-issue
echo ""
cat /etc/motd
}
_abort() {
if _dialog --yesno "Abort$(echo ${_TITLE} | cut -d '|' -f3) ?" 5 45; then
[[ -e "${_ANSWER}-running" ]] && rm "${_ANSWER}-running"

View file

@ -206,7 +206,7 @@ if [[ -e /usr/bin/setup ]]; then
fi
else
# run launcher on latest/normal medium once!
if [[ ! -e /tmp/.launcher ]]; then
if [[ ! -e /.launcher ]]; then
launcher
fi
fi