diff --git a/README.md b/README.md index 7350fba..8ada512 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ knowledgable RHEL developers if they want to merge the required support and keep it current. Note: Android is not supported but I will support Android developers if they -want to merge and keep current the required support (most like just +want to merge and keep current the required support (most likely just instructions about how to compile and maybe a modification or two to Makefile). @@ -328,13 +328,13 @@ sudo xbps-install linux-headers dkms git make If using pacman ``` -sudo pacman -S --noconfirm linux-headers dkms git bc +sudo pacman -S --noconfirm linux-headers dkms git ``` Note: The following is needed if using Manjaro for RasPi4B. ``` -sudo pacman -S --noconfirm linux-rpi4-headers dkms git bc +sudo pacman -S --noconfirm linux-rpi4-headers dkms git ``` Note: If you are asked to choose a provider, make sure to choose the one diff --git a/include/autoconf.h b/include/autoconf.h index f7ad65b..25a74cb 100644 --- a/include/autoconf.h +++ b/include/autoconf.h @@ -24,8 +24,8 @@ /* kills AP mode * #define CONFIG_REGD_SRC_FROM_OS - ^/ - * + */ + /* Set CONFIG_RTL8821C from Makefile */ #ifndef CONFIG_RTL8821C #define CONFIG_RTL8821C diff --git a/install-driver.sh b/install-driver.sh index 9af936f..a16a7f9 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="20221208" +SCRIPT_VERSION="20221217" MODULE_NAME="8821cu" DRV_VERSION="5.12.0.4" @@ -125,6 +125,15 @@ then /sbin/depmod -a ${KVER} fi +# check for installed dkms installations (work in progress) +if command -v dkms >/dev/null 2>&1 +then + if dkms status | grep -qw ${DRV_NAME}; then + echo "opps..." + exit 1 + fi +fi + # information that helps with bug reports # display kernel version