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}"
_FIRMWARE="/lib/firmware"
_usage () {
echo " Check Firmware And Modules Archboot Environment"
echo "------------------------------------------------"
echo "usage: ${_APPNAME} run"
echo -e "\e[1mCheck Firmware And Modules Archboot Environment\e[m"
echo -e "\e[1m---------------------------------------------------------------\e[m"
echo "Check modules on firmware depends and existence in environment."
echo ""
echo -e "usage: \e[1m${_APPNAME} run\e[m"
exit 0
}
[[ -z "${1}" || "${1}" != "run" ]] && _usage

View file

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

View file

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