add basic-common.sh to first place

This commit is contained in:
Tobias Powalowski 2023-07-17 08:43:20 +02:00
parent 80f8a29a5c
commit 39995973b1
3 changed files with 3 additions and 22 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# written by Tobias Powalowski <tpowa@archlinux.org>
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Clock Configuration"
. /usr/lib/archboot/basic-common.sh
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Clock Configuration"
_hwclock() {
_DATE_PROGRAM=timedatectl

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# written by Tobias Powalowski <tpowa@archlinux.org>
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Launcher"
. /usr/lib/archboot/basic-common.sh
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Launcher"
_show_login() {
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running

View file

@ -1,27 +1,8 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# written by Tobias Powalowski <tpowa@archlinux.org>
LANG=C
_ANSWER="/tmp/.localize"
_RUNNING_ARCH="$(uname -m)"
. /usr/lib/archboot/basic-common.sh
_TITLE="Archboot ${_RUNNING_ARCH} | Arch Linux Setup | Localization"
# _dialog()
# an el-cheapo dialog wrapper
#
# parameters: see dialog(1)
# returns: whatever dialog did
_dialog() {
dialog --backtitle "${_TITLE}" --aspect 15 "$@"
return $?
}
_abort() {
_dialog --yesno "Abort Arch Linux Localization?" 5 35 || return 0
[[ -e /tmp/.localize-running ]] && rm /tmp/.localize-running
[[ -e /tmp/.localize ]] && rm /tmp/.localize
clear
exit 1
}
_localize_menu() {
_LOCALE=""