text format changes

This commit is contained in:
Tobias Powalowski 2024-06-12 22:39:54 +02:00
parent 2a1ca58dc0
commit 77e5a12bca
3 changed files with 13 additions and 6 deletions

View file

@ -6,9 +6,11 @@ _APPNAME=${0##*/}
_MODULE_DIR="/usr/lib/modules/${_RUNNING_KERNEL}" _MODULE_DIR="/usr/lib/modules/${_RUNNING_KERNEL}"
_FIRMWARE="/lib/firmware" _FIRMWARE="/lib/firmware"
_usage () { _usage () {
echo " Check Firmware And Modules Archboot Environment" echo -e "\e[1mCheck Firmware And Modules Archboot Environment\e[m"
echo "------------------------------------------------" echo -e "\e[1m---------------------------------------------------------------\e[m"
echo "usage: ${_APPNAME} run" echo "Check modules on firmware depends and existence in environment."
echo ""
echo -e "usage: \e[1m${_APPNAME} run\e[m"
exit 0 exit 0
} }
[[ -z "${1}" || "${1}" != "run" ]] && _usage [[ -z "${1}" || "${1}" != "run" ]] && _usage

View file

@ -20,6 +20,9 @@ _usage()
exit 0 exit 0
} }
[[ -z "${1}" ]] && _usage [[ -z "${1}" ]] && _usage
_archboot_check
echo "Waiting for pacman keyring..."
_pacman_keyring
echo "Installing kernel..." echo "Installing kernel..."
pacman -Sydd --noconfirm --noscriptlet linux &>"${_LOG}" pacman -Sydd --noconfirm --noscriptlet linux &>"${_LOG}"
depmod -a depmod -a

View file

@ -5,9 +5,11 @@
_LOG=testsuite.log _LOG=testsuite.log
_APPNAME=${0##*/} _APPNAME=${0##*/}
_usage () { _usage () {
echo "Testsuite for Archboot Environment" echo -e "\e[1mTestsuite for Archboot Environment\e[m"
echo "----------------------------------" echo -e "\e[1m---------------------------------------------\e[m"
echo "usage: ${_APPNAME} run" echo "Run automatic tests to detect errors/changes."
echo ""
echo -e "usage: \e[1m${_APPNAME} run\e[m"
exit 0 exit 0
} }
_run_test () { _run_test () {