From 02d1b22ccdd79a0b097ab71c7b77293df98ed1d6 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 17 Jul 2023 08:51:36 +0200 Subject: [PATCH] add label to basic-common.sh --- usr/bin/archboot-network.sh | 4 ++-- usr/lib/archboot/basic-common.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-network.sh b/usr/bin/archboot-network.sh index ca717977e..3b30169cf 100755 --- a/usr/bin/archboot-network.sh +++ b/usr/bin/archboot-network.sh @@ -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 diff --git a/usr/lib/archboot/basic-common.sh b/usr/lib/archboot/basic-common.sh index 7c9b00089..f0aa75287 100644 --- a/usr/lib/archboot/basic-common.sh +++ b/usr/lib/archboot/basic-common.sh @@ -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