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