Skip to content

Commit

Permalink
updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
morrownr committed Apr 19, 2022
1 parent 8a01348 commit b434baf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
26 changes: 5 additions & 21 deletions install-driver-no-dkms.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/bin/bash

SCRIPT_NAME="install-driver-no-dkms.sh"
SCRIPT_VERSION="20220222"
# Purpose: Install Realtek USB WiFi adapter drivers.
#
# This version of the installation script does not use dkms.

DRV_NAME="rtl88x2bu"
DRV_VERSION="5.13.1"
SCRIPT_NAME="install-driver-no-dkms.sh"
SCRIPT_VERSION="20220419"
OPTIONS_FILE="88x2bu.conf"

DRV_DIR="$(pwd)"
KRNL_VERSION="$(uname -r)"

clear

# support for NoPrompt allows non-interactive use of this script
NO_PROMPT=0

Expand Down Expand Up @@ -39,15 +35,6 @@ then
exit 1
fi

# check for previous installation
#if [[ -d "/usr/src/${DRV_NAME}-${DRV_VERSION}" ]]
#then
# echo "It appears that this driver may already be installed."
# echo "You will need to run the following before reattempting installation."
# echo "$ sudo ./remove-driver.sh"
# exit 1
#fi

# information that helps with bug reports
# displays script name and version
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"
Expand All @@ -60,9 +47,6 @@ uname -m
# getconf LONG_BIT (need to work on this)

echo "Starting installation..."
# the add command requires source in /usr/src/${DRV_NAME}-${DRV_VERSION}
#echo "Copying source files to: /usr/src/${DRV_NAME}-${DRV_VERSION}"
#cp -rf "${DRV_DIR}" /usr/src/${DRV_NAME}-${DRV_VERSION}
echo "Copying ${OPTIONS_FILE} to: /etc/modprobe.d"
cp -f ${OPTIONS_FILE} /etc/modprobe.d

Expand Down
13 changes: 5 additions & 8 deletions remove-driver-no-dkms.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#!/bin/bash

SCRIPT_NAME="remove-driver-no-dkms.sh"
SCRIPT_VERSION="20220222"
# Purpose: Remove Realtek USB WiFi adapter drivers.
#
# This version of the removal script does not use dkms.

DRV_NAME="rtl88x2bu"
DRV_VERSION="5.13.1"
SCRIPT_NAME="remove-driver-no-dkms.sh"
SCRIPT_VERSION="20220419"
OPTIONS_FILE="88x2bu.conf"

DRV_DIR="$(pwd)"
KRNL_VERSION="$(uname -r)"

clear
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"

# support for NoPrompt allows non-interactive use of this script
Expand Down

0 comments on commit b434baf

Please sign in to comment.