package/rtw89-oot: auto unload
This commit is contained in:
parent
8e1b776665
commit
e370d2f781
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=rtw89-oot
|
||||
PKG_VERSION:=2024-01-19
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_VERSION:=ebe87ac234a72a63a1b2ede911a874f1b7a6fe43
|
||||
PKG_HASH:=54d70235dd2208673c0380f5ea9b9cec53a0f08b4f6e7892181cedd30a61b18e
|
||||
|
@ -52,6 +52,11 @@ define KernelPackage/rtw89-oot/description
|
|||
This package contains a driver for Realtek RTL8851BE/RTL8852AE/RTL8852BE/RTL8852CE Family Controller.
|
||||
endef
|
||||
|
||||
define KernelPackage/rtw89-oot/install
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(INSTALL_DATA) ./files/kmods-unload.default $(1)/etc/uci-defaults/kmods-unload-rtw89
|
||||
endef
|
||||
|
||||
NOSTDINC_FLAGS := \
|
||||
$(KERNEL_NOSTDINC_FLAGS) \
|
||||
-I$(PKG_BUILD_DIR) \
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -f /etc/config/kmods ] || exit 0
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete kmods.rtw89
|
||||
set kmods.rtw89=auto_unload
|
||||
set kmods.rtw89.function="rtw_8851be rtw_8852ae rtw_8852be rtw_8852ce"
|
||||
set kmods.rtw89.support="rtw_8852c rtw_8852b rtw_8852a rtw_8851b rtw89pci rtw89core"
|
||||
|
||||
commit kmods
|
||||
EOF
|
Loading…
Reference in New Issue