remove unneeded

This commit is contained in:
cronyx
2023-12-18 14:13:25 +03:00
parent b7cedf307d
commit f371f00a00

View File

@@ -5,79 +5,6 @@ set_gpio() {
sleep 1
}
set_mmc() {
mmc=/sys/devices/platform/jzmmc_v1.2.$1/present
[ "$(cat $mmc)" = "N" ] && echo "INSERT" > $mmc
}
# Generic ATBM603X
if [ "$1" = "atbm603x-generic" ]; then
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio
exit 0
fi
# Generic RTL8189FS
if [ "$1" = "rtl8189fs-generic" ]; then
set_mmc 1
modprobe 8189fs
exit 0
fi
# T20 Wyze PanV1
if [ "$1" = "rtl8189es-t20-wyze-pan-v1" ]; then
set_mmc 1
modprobe 8189es rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi
# T20 Wyze V2
if [ "$1" = "rtl8189ftv-t20-wyze-v2" ]; then
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi
# T31 Wyze DB3
if [ "$1" = "rtl8189ftv-t31-wyze-db3" ]; then
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi
# T31 Wyze PanV2
if [ "$1" = "atbm603x-t31-wyze-pan-v2" ]; then
set_gpio 58 0
set_gpio 58 1
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
exit 0
fi
# T31 Wyze V3 / AtomCam 2
if [ "$1" = "atbm603x-t31-wyze-v3" ]; then
set_gpio 57 0
set_gpio 57 1
set_mmc 1
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
exit 0
fi
# T31 Wyze V3
if [ "$1" = "rtl8189ftv-t31-wyze-v3" ]; then
set_gpio 57 1
set_mmc 1
modprobe 8189fs rtw_power_mgnt=0 rtw_enusbss=0
exit 0
fi
# Hi3518ev300 Xiaomi MJSXJ02HL
if [ "$1" = "rtl8189fs-mjsxj02hl" ]; then
devmem 0x112C0048 32 0x1D54
devmem 0x112C004C 32 0x1174