beast: Import device-specific init.amlogic.wifi_buildin.rc
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 27 Apr 2022 19:06:10 +0000 (15:06 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 21 May 2022 03:56:15 +0000 (23:56 -0400)
Change-Id: Ia4fd506bdc90eea15a5e680e2cffd194ed7f98f5

device.mk
init-files/init.amlogic.wifi_buildin.rc [new file with mode: 0644]

index 8d6dc1be4518d90d9db68ca261cc6c46fe60d2dd..2e30c5b72ff7a9ed4a274a5df88e298a58d9c024 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -14,6 +14,10 @@ $(call inherit-product, device/amlogic/gx-common/gx.mk)
 BOARD_HAVE_BLUETOOTH_RTK_TV := true
 include hardware/realtek/rtkbt/rtkbt.mk
 
+## Init-Files
+PRODUCT_COPY_FILES += \
+    $(DEVICE_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc
+
 ## Kernel Modules
 PRODUCT_PACKAGES += \
     8822bs
diff --git a/init-files/init.amlogic.wifi_buildin.rc b/init-files/init.amlogic.wifi_buildin.rc
new file mode 100644 (file)
index 0000000..7ac5754
--- /dev/null
@@ -0,0 +1,2 @@
+on boot
+    insmod /vendor/lib/modules/8822bs.ko ifname=wlan0 if2name=p2p0