From 999210e3850777df2c1e87e834e5df9dc69b8988 Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Tue, 28 Jun 2022 21:39:57 -0700 Subject: [PATCH] add 8189es for panv1 Add a newer version of the 8189es driver for the PanV1 --- SD_ROOT/wz_mini/etc/init.d/wz_post.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 debcc00..840e65f 100755 --- a/SD_ROOT/wz_mini/etc/init.d/wz_post.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_post.sh @@ -43,13 +43,14 @@ fi ## REPLACE STOCK MODULES if [[ "$ENABLE_RTL8189FS_DRIVER" == "true" ]] || [[ "$ENABLE_RTL8189FS_DRIVER" == "" ]]; then - #V2/V3 ONLY [DB3 untested] - echo "Enable 8189fs" - if [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then - sed -i 's/\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=3/g' /opt/wz_mini/tmp/.storage/app_init.sh - elif [ -f /opt/wz_mini/tmp/.WYZE_CAKP2JFUS ]; then - sed -i 's/\/system\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\_\_isvp_swan_1.0\_\_\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=3/g' /opt/wz_mini/tmp/.storage/app_init.sh - fi + echo "Enable 8189fs" + if [ -f /opt/wz_mini/tmp/.WYZEC1-JZ ]; then + sed -i 's/\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=3/g' /opt/wz_mini/tmp/.storage/app_init.sh + elif [ -f /opt/wz_mini/tmp/.WYZECP1_JEF ]; then + sed -i 's/insmod \/driver\/8189es.ko/insmod \/opt\/wz_mini\/lib\/modules\/3.10.14\/extra\/8189es.ko rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=3/g' /opt/wz_mini/tmp/.storage/app_init.sh + elif [ -f /opt/wz_mini/tmp/.WYZE_CAKP2JFUS ]; then + sed -i 's/\/system\/driver\/rtl8189ftv.ko/\/opt\/wz_mini\/lib\/modules\/3.10.14\_\_isvp_swan_1.0\_\_\/extra\/8189fs.ko rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=4/g' /opt/wz_mini/tmp/.storage/app_init.sh + fi fi if [[ "$ENABLE_ATBM603X_DRIVER" == "true" ]] || [[ "$ENABLE_ATBM603X_DRIVER" == "" ]]; then