mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add label to basic-common.sh
This commit is contained in:
parent
123bcace38
commit
02d1b22ccd
2 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,7 @@ _wireless() {
|
|||
iwctl station "${_INTERFACE}" scan &>"${_NO_LOG}"
|
||||
sleep 5
|
||||
#shellcheck disable=SC2086,SC2046
|
||||
if _dialog --cancel-label "Exit" --title " SSID Scan Result " --menu "Empty spaces in your SSID are replaced by '+' char" 13 60 6 \
|
||||
if _dialog --cancel-label "${_LABEL}" --title " SSID Scan Result " --menu "Empty spaces in your SSID are replaced by '+' char" 13 60 6 \
|
||||
$(_essid_list _) \
|
||||
"HIDDEN" "SSID" "RESCAN" "SSIDs" 2>"${_ANSWER}"; then
|
||||
_WLAN_SSID=$(cat "${_ANSWER}")
|
||||
|
@ -100,7 +100,7 @@ _network() {
|
|||
_INTERFACES=$(_net_interfaces)
|
||||
while [[ -z "${_INTERFACE}" ]]; do
|
||||
#shellcheck disable=SC2086
|
||||
if _dialog --cancel-label "Exit" --title " Network Interface " --menu "" 11 40 5 ${_INTERFACES} 2>"${_ANSWER}"; then
|
||||
if _dialog --cancel-label "${_LABEL}" --title " Network Interface " --menu "" 11 40 5 ${_INTERFACES} 2>"${_ANSWER}"; then
|
||||
_INTERFACE=$(cat "${_ANSWER}")
|
||||
else
|
||||
_abort
|
||||
|
|
|
@ -8,6 +8,7 @@ _LOG="/dev/tty7"
|
|||
_NO_LOG="/dev/null"
|
||||
_DLPROG="wget -q"
|
||||
_MIRRORLIST="/etc/pacman.d/mirrorlist"
|
||||
_LABEL="Exit"
|
||||
|
||||
# _dialog()
|
||||
# an el-cheapo dialog wrapper
|
||||
|
|
Loading…
Reference in a new issue