mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add basic-common.sh to first place
This commit is contained in:
parent
80f8a29a5c
commit
39995973b1
3 changed files with 3 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue