minor update

pull/53/head
morrownr 2023-01-08 14:59:04 -06:00
parent 83b7131c0a
commit 5b7422df6b
1 changed files with 20 additions and 14 deletions

View File

@ -115,22 +115,36 @@ do
done done
# displays script name and version # 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 # information that helps with bug reports
# display kernel version
echo "Kernel: ${KVER}"
# display architecture # display architecture
echo "Arch : ${KARCH}" echo "Arch:${KARCH}"
# display total memory in system # display total memory in system
grep MemTotal /proc/meminfo grep MemTotal /proc/meminfo
# display kernel version
echo "Kernel: ${KVER}"
# display gcc version # display gcc version
gcc_ver=$(gcc --version | grep -i gcc) 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 # display ISO 3166-1 alpha-2 Country Code
#a2_country_code=$(iw reg get | grep -i country) #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." # echo "Please read and follow the directions in the file after installation."
#fi #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 # check for and remove non-dkms installations
# standard naming # standard naming
if [[ -f "${MODDESTDIR}${MODULE_NAME}.ko" ]] if [[ -f "${MODDESTDIR}${MODULE_NAME}.ko" ]]
@ -251,7 +258,6 @@ then
exit $RESULT exit $RESULT
fi fi
else else
dkms --version
echo "The dkms installation routines are in use." echo "The dkms installation routines are in use."
# the dkms add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION} # the dkms add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION}