set gpio to enable wifi

This commit is contained in:
cronyx
2024-03-28 18:39:14 +03:00
parent 415a1ec467
commit d090910457
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
if [ "$1" = "atbm603x-ssc335-tapo-c110" ]; then
set_gpio 16 1
modprobe atbm603x_wifi_usb
exit 0
fi
exit 1

View File

@@ -13,7 +13,6 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/s
cli -s .system.staticDir /var/www/majestic
cli -s .nightMode.enabled true
cli -s .nightMode.irCutPin1 78
cli -s .nightMode.irCutPin2 79
cli -s .nightMode.backlightPin 14
cli -s .nightMode.colorToGray true
cli -s .audio.speakerPin 61
@@ -22,7 +21,7 @@ cli -s .video0.codec h264
#
# Set wlan device and credentials if need
#
fw_setenv wlandev atbm603x-generic-usb
fw_setenv wlandev atbm603x-ssc335-tapo-c110
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678