From 037fac6ee3f5be1013bbab2fdb51c6f7005e366c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 6 Sep 2023 10:47:51 +0200 Subject: [PATCH] move VC to main common.sh --- usr/lib/archboot/common.sh | 2 ++ usr/lib/archboot/update/update.sh | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/common.sh b/usr/lib/archboot/common.sh index ed51fa8b3..55dc0bc14 100644 --- a/usr/lib/archboot/common.sh +++ b/usr/lib/archboot/common.sh @@ -6,6 +6,8 @@ _BASENAME=${0##*/} _RUNNING_ARCH="$(uname -m)" _LOG="/dev/tty11" _NO_LOG="/dev/null" +_VC_NUM="$(basename ${_LOG} | sed -e 's#tty##g')" +_VC="VC${_VC_NUM}" _ANSWER="/.${_BASENAME}" _LABEL="Exit" _DLPROG="curl -L -s" diff --git a/usr/lib/archboot/update/update.sh b/usr/lib/archboot/update/update.sh index d99a09001..75f15d127 100644 --- a/usr/lib/archboot/update/update.sh +++ b/usr/lib/archboot/update/update.sh @@ -18,8 +18,6 @@ _INST="/${_LIB}/installer" _HELP="/${_LIB}/installer/help" _RUN="/${_LIB}/run" _UPDATE="/${_LIB}/update" -_VC_NUM="$(basename "${_LOG}" | sed -e 's#tty##g')" -_VC="VC${_VC_NUM}" _MENU_TITLE=" Logging to ${_VC} | ${_LOG} " _graphic_options() {