1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-18 19:44:48 +00:00

minor update

This commit is contained in:
morrownr 2023-01-08 14:59:04 -06:00
parent 83b7131c0a
commit 5b7422df6b

View File

@ -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}