From 5b7422df6b4ba75b48d90b9a29cdd8157b165652 Mon Sep 17 00:00:00 2001 From: morrownr Date: Sun, 8 Jan 2023 14:59:04 -0600 Subject: [PATCH] minor update --- install-driver.sh | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/install-driver.sh b/install-driver.sh index f14491c..b51132b 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -115,22 +115,36 @@ do done # displays script name and version -echo "Script: ${SCRIPT_NAME} v${SCRIPT_VERSION}" +echo "Script: ${SCRIPT_NAME} v${SCRIPT_VERSION}" # information that helps with bug reports -# display kernel version -echo "Kernel: ${KVER}" - # display architecture -echo "Arch : ${KARCH}" +echo "Arch:${KARCH}" # display total memory in system grep MemTotal /proc/meminfo +# display kernel version +echo "Kernel: ${KVER}" + # display gcc version gcc_ver=$(gcc --version | grep -i gcc) -echo "gcc : "${gcc_ver} +echo "gcc: "${gcc_ver} + +# display dkms version +# run if dkms is installed +if command -v dkms >/dev/null 2>&1 +then + dkms --version +fi + +# display secure mode status +# run if mokutil is installed +if command -v mokutil >/dev/null 2>&1 +then + mokutil --sb-state +fi # display ISO 3166-1 alpha-2 Country Code #a2_country_code=$(iw reg get | grep -i country) @@ -142,13 +156,6 @@ echo "gcc : "${gcc_ver} # echo "Please read and follow the directions in the file after installation." #fi -# display secure mode status -# run if mokutil is installed -if command -v mokutil >/dev/null 2>&1 -then - mokutil --sb-state -fi - # check for and remove non-dkms installations # standard naming if [[ -f "${MODDESTDIR}${MODULE_NAME}.ko" ]] @@ -251,7 +258,6 @@ then exit $RESULT fi else - dkms --version echo "The dkms installation routines are in use." # the dkms add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION}