From b17e2ccd24314d730471f7e8232df94f6f093e8c Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Wed, 15 Jun 2022 19:54:38 -0700 Subject: [PATCH] add new ENABLE_RTL8189FS_DRIVER option --- SD_ROOT/wz_mini/etc/init.d/wz_post.sh | 7 +++++++ SD_ROOT/wz_mini/wz_mini.conf | 2 ++ 2 files changed, 9 insertions(+) diff --git a/SD_ROOT/wz_mini/etc/init.d/wz_post.sh b/SD_ROOT/wz_mini/etc/init.d/wz_post.sh index 16921c3..e5a935c 100755 --- a/SD_ROOT/wz_mini/etc/init.d/wz_post.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_post.sh @@ -46,6 +46,13 @@ if [ -f /params/config/.product_config ]; then fi fi +## REPLACE STOCK MODULES + +if [[ "$ENABLE_RTL8189FS_DRIVER" == "true" ]]; then + echo "Enable RTL8189FS" + sed -i 's/\/system\/driver\/rtl8189ftv.ko/\/opt\/8189fs_wz.ko rtw_power_mgnt=0 rtw_enusbss=0/g' /opt/wz_mini/tmp/.storage/app_init.sh +fi + ##RTSP SERVER INIT if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] && ! [[ -e /tmp/dbgflag ]]; then diff --git a/SD_ROOT/wz_mini/wz_mini.conf b/SD_ROOT/wz_mini/wz_mini.conf index ded368b..bfb3f35 100644 --- a/SD_ROOT/wz_mini/wz_mini.conf +++ b/SD_ROOT/wz_mini/wz_mini.conf @@ -32,6 +32,8 @@ ENABLE_IPTABLES="false" ENABLE_NFSv4="false" +ENABLE_RTL8189FS_DRIVER="false" + #####ACCESSORIES##### REMOTE_SPOTLIGHT="false" REMOTE_SPOTLIGHT_HOST="0.0.0.0"