Overlay: update wireless settings

pull/907/head
Viktor 2023-07-09 04:55:02 +02:00 committed by viktorxda
parent b41d2250c5
commit 0784a3bd25
2 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
device=$(fw_printenv -n wlandevice) device=$(fw_printenv -n wlandev)
if [ "$1" = "start" ] && [ ! -z "$device" ]; then if [ "$1" = "start" ] && [ ! -z "$device" ]; then
if /etc/wireless "$device"; then if /etc/wireless "$device"; then

View File

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
set_gpio() { set_gpio() {
echo $1 > /sys/class/gpio/export echo $1 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio$1/direction echo out > /sys/class/gpio/gpio$1/direction
@ -7,6 +6,13 @@ set_gpio() {
sleep 1 sleep 1
} }
# HI3516EV200 CamHi
if [ "$1" = "mt7601u-hi3516ev200-camhi" ]; then
set_gpio 9 0
modprobe mt7601u
exit 0
fi
# HI3516EV300 CamHi # HI3516EV300 CamHi
if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then
devmem 0x100C0080 32 0x530 devmem 0x100C0080 32 0x530
@ -15,12 +21,6 @@ if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then
exit 0 exit 0
fi fi
# SSC338Q CamHi
if [ "$1" = "8733bu-ssc338q-camhi" ]; then
modprobe 8733bu
exit 0
fi
# SSC337DE Foscam # SSC337DE Foscam
if [ "$1" = "8188fu-ssc337de-foscam" ]; then if [ "$1" = "8188fu-ssc337de-foscam" ]; then
set_gpio 15 0 set_gpio 15 0
@ -28,6 +28,12 @@ if [ "$1" = "8188fu-ssc337de-foscam" ]; then
exit 0 exit 0
fi fi
# SSC338Q CamHi
if [ "$1" = "8733bu-ssc338q-camhi" ]; then
modprobe 8733bu
exit 0
fi
# T21 BJS # T21 BJS
if [ "$1" = "8188fu-t21-bjs" ]; then if [ "$1" = "8188fu-t21-bjs" ]; then
set_gpio 50 0 set_gpio 50 0