mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2025-01-18 16:53:40 +00:00
pre-release cleanup
This commit is contained in:
parent
2e46b96a12
commit
0ae6deca87
11
README.md
11
README.md
@ -745,8 +745,17 @@ Contributors:
|
|||||||
@tamojitray
|
@tamojitray
|
||||||
@amisix
|
@amisix
|
||||||
@henkv1
|
@henkv1
|
||||||
|
@SubZero5
|
||||||
|
|
||||||
----
|
-----
|
||||||
|
|
||||||
|
To-Do:
|
||||||
|
|
||||||
|
- Test for installation in VM's.
|
||||||
|
- Optimize scripts.
|
||||||
|
- Installation script needs to check country code setup.
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
#### [Go to Main Menu](https://github.com/morrownr/USB-WiFi)
|
#### [Go to Main Menu](https://github.com/morrownr/USB-WiFi)
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@ SCRIPT_VERSION="20230126"
|
|||||||
MODULE_NAME="8821cu"
|
MODULE_NAME="8821cu"
|
||||||
DRV_VERSION="5.12.0.4"
|
DRV_VERSION="5.12.0.4"
|
||||||
|
|
||||||
KVER="$(uname -r)"
|
|
||||||
KARCH="$(uname -m)"
|
KARCH="$(uname -m)"
|
||||||
|
KVER="$(uname -r)"
|
||||||
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
|
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
|
||||||
|
|
||||||
DRV_NAME="rtl${MODULE_NAME}"
|
DRV_NAME="rtl${MODULE_NAME}"
|
||||||
@ -74,6 +74,14 @@ if ! command -v gcc >/dev/null 2>&1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check to ensure bc is installed
|
||||||
|
if ! command -v bc >/dev/null 2>&1; then
|
||||||
|
echo "A required package is not installed."
|
||||||
|
echo "Please install the following package: bc"
|
||||||
|
echo "Once the package is installed, please run \"sudo ./${SCRIPT_NAME}\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# check to ensure make is installed
|
# check to ensure make is installed
|
||||||
if ! command -v make >/dev/null 2>&1; then
|
if ! command -v make >/dev/null 2>&1; then
|
||||||
echo "A required package is not installed."
|
echo "A required package is not installed."
|
||||||
|
@ -28,8 +28,8 @@ SCRIPT_VERSION="20230126"
|
|||||||
MODULE_NAME="8821cu"
|
MODULE_NAME="8821cu"
|
||||||
DRV_VERSION="5.12.0.4"
|
DRV_VERSION="5.12.0.4"
|
||||||
|
|
||||||
KVER="$(uname -r)"
|
|
||||||
KARCH="$(uname -m)"
|
KARCH="$(uname -m)"
|
||||||
|
KVER="$(uname -r)"
|
||||||
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
|
MODDESTDIR="/lib/modules/${KVER}/kernel/drivers/net/wireless/"
|
||||||
|
|
||||||
DRV_NAME="rtl${MODULE_NAME}"
|
DRV_NAME="rtl${MODULE_NAME}"
|
||||||
@ -67,7 +67,7 @@ echo ": ${SCRIPT_NAME} v${SCRIPT_VERSION}"
|
|||||||
# information that helps with bug reports
|
# information that helps with bug reports
|
||||||
|
|
||||||
# display architecture
|
# display architecture
|
||||||
echo ": ${KARCH} (architecture"
|
echo ": ${KARCH} (architecture)"
|
||||||
|
|
||||||
# display kernel version
|
# display kernel version
|
||||||
echo ": ${KVER} (kernel version)"
|
echo ": ${KVER} (kernel version)"
|
||||||
@ -132,7 +132,7 @@ echo "You may now delete the driver directory if desired."
|
|||||||
|
|
||||||
# if NoPrompt is not used, ask user some questions
|
# if NoPrompt is not used, ask user some questions
|
||||||
if [ $NO_PROMPT -ne 1 ]; then
|
if [ $NO_PROMPT -ne 1 ]; then
|
||||||
printf "Do you want to apply the new options by rebooting now? (recommended) [y/N] "
|
printf "Do you want to reboot now? (recommended) [y/N] "
|
||||||
read -r REPLY
|
read -r REPLY
|
||||||
case "$REPLY" in
|
case "$REPLY" in
|
||||||
[yY]*) reboot ;;
|
[yY]*) reboot ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user