mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-13 15:42:20 +00:00
set gpio to enable wifi
This commit is contained in:
14
devices/ssc335_lite_tp-link-tapo-c110-v1/general/overlay/etc/wireless/usb
Executable file
14
devices/ssc335_lite_tp-link-tapo-c110-v1/general/overlay/etc/wireless/usb
Executable 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user