Skip to content

Commit

Permalink
package/rtl8821cu: copy modprobe.d config to target
Browse files Browse the repository at this point in the history
The rtl8821cu repository comes with a 8821cu.conf file intended to be installed
in /etc/modprobe.d - the configuration file enables some driver features.

Install the /etc/modprobe.d/8821cu.conf file to the target.

Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin committed Apr 22, 2023
1 parent b9980d3 commit 70470fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/rtl8821cu/rtl8821cu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ RTL8821CU_MODULE_MAKE_OPTS = \
KVER=$(LINUX_VERSION_PROBED) \
USER_EXTRA_CFLAGS="$(RTL8821CU_USER_EXTRA_CFLAGS)"

define RTL8821CU_INSTALL_MODPROBE_CONF
$(INSTALL) -m 0644 -D $(@D)/8821cu.conf \
$(TARGET_DIR)/etc/modprobe.d/8821cu.conf
endef
RTL8821CU_POST_INSTALL_TARGET_HOOKS += RTL8821CU_INSTALL_MODPROBE_CONF

$(eval $(kernel-module))
$(eval $(generic-package))

0 comments on commit 70470fe

Please sign in to comment.