rtlwifi-setup.sh: add 5.8 patch

This commit is contained in:
mollusk 2020-10-01 23:20:13 -07:00
parent b97f6b0229
commit cf87160b26

View File

@ -27,9 +27,14 @@ _download(){
fi fi
} }
_apply_patch(){
wget https://github.com/cilynx/rtl88x2bu/pull/58.patch
git apply 58.patch
}
_install(){ _install(){
cd ${tmpdir}/${pkgname} cd ${tmpdir}/${pkgname}
_apply_patch
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
dkms add -m rtl88x2bu -v ${VER} dkms add -m rtl88x2bu -v ${VER}