From 57098d7182dc2480185e73d5d3a3f6f427c18d25 Mon Sep 17 00:00:00 2001 From: morrownr Date: Mon, 9 Jan 2023 14:27:34 -0600 Subject: [PATCH] cosmetic updates --- Makefile | 1 - install-driver.sh | 22 +++++++++++----------- remove-driver.sh | 6 +++--- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index f0efec2..0a93bb3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) EXTRA_CFLAGS += -O1 -# --param ggc-min-expand=10 #EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -Wall #EXTRA_CFLAGS += -Wextra diff --git a/install-driver.sh b/install-driver.sh index b51132b..9d51070 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -16,7 +16,7 @@ # GNU General Public License for more details. SCRIPT_NAME="install-driver.sh" -SCRIPT_VERSION="20230107" +SCRIPT_VERSION="20230109" MODULE_NAME="8821cu" DRV_VERSION="5.12.0.4" @@ -120,30 +120,30 @@ echo "Script: ${SCRIPT_NAME} v${SCRIPT_VERSION}" # information that helps with bug reports # display architecture -echo "Arch:${KARCH}" +echo ": ${KARCH}" # display total memory in system -grep MemTotal /proc/meminfo +#grep MemTotal /proc/meminfo # display kernel version -echo "Kernel: ${KVER}" +echo ": ${KVER}" # display gcc version gcc_ver=$(gcc --version | grep -i gcc) -echo "gcc: "${gcc_ver} +echo ": "${gcc_ver} -# display dkms version -# run if dkms is installed +# display dkms version if installed if command -v dkms >/dev/null 2>&1 then - dkms --version + dkms_ver=$(dkms --version) + echo ": "${dkms_ver} fi -# display secure mode status -# run if mokutil is installed +# display secure mode status if mokutil is installed if command -v mokutil >/dev/null 2>&1 then - mokutil --sb-state + sb_state=$(mokutil --sb-state) + echo ": "${sb_state} fi # display ISO 3166-1 alpha-2 Country Code diff --git a/remove-driver.sh b/remove-driver.sh index 7f3b3ea..79c09ba 100755 --- a/remove-driver.sh +++ b/remove-driver.sh @@ -16,7 +16,7 @@ # GNU General Public License for more details. SCRIPT_NAME="remove-driver.sh" -SCRIPT_VERSION="20230107" +SCRIPT_VERSION="20230109" MODULE_NAME="8821cu" DRV_VERSION="5.12.0.4" @@ -91,10 +91,10 @@ fi # information that helps with bug reports # display kernel version -echo "Kernel: ${KVER}" +echo ": ${KVER}" # display architecture -echo "Arch : ${KARCH}" +echo ": ${KARCH}" # determine if dkms is installed and run the appropriate routines if command -v dkms >/dev/null 2>&1