mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
fix remote-login.sh, fix abort function
This commit is contained in:
parent
d4e0f187a2
commit
be7d47b343
3 changed files with 2 additions and 3 deletions
|
@ -123,7 +123,7 @@ _show_login() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_abort() {
|
_abort() {
|
||||||
if _dialog --yesno "Abort$(echo "${_TITLE}" | cut -d '|' -f3) ?" 5 45; then
|
if _dialog --yesno "Abort$(echo "${_TITLE}" | cut -d '|' -f5) ?" 5 45; then
|
||||||
[[ -e "${_ANSWER}-running" ]] && rm "${_ANSWER}-running"
|
[[ -e "${_ANSWER}-running" ]] && rm "${_ANSWER}-running"
|
||||||
[[ -e "${_ANSWER}" ]] && rm "${_ANSWER}"
|
[[ -e "${_ANSWER}" ]] && rm "${_ANSWER}"
|
||||||
clear
|
clear
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 41 KiB |
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
|
|
||||||
# simulate login from tty on first screen session
|
# simulate login from tty on first screen session
|
||||||
|
@ -8,5 +8,4 @@ if ! screen -ls &>/dev/null; then
|
||||||
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."
|
||||||
read -r
|
read -r
|
||||||
fi
|
fi
|
||||||
. /etc/profile
|
|
||||||
screen -q -xRR
|
screen -q -xRR
|
||||||
|
|
Loading…
Reference in a new issue