Files
wlan-ap/feeds/morse/netifd-morse/etc/init.d/halow-gpio-reset
ian77_chen f39339564a mediatek-sdk: Support HaLow on EAP112
1. porting MorseMicro HaLow driver to support HaLow on EAP112
2. Only support FCC regulation because of hardware limitation
3. Add /etc/init.d/halow-gpio-reset to initialize HaLow chip in early stage
4. Add /etc/uci-defaults/aaa-fix-phy0-to-morse to correct the default uci for HaLow radio.

Signed-off-by: Ian Chen <ian77_chen@accton.com>
2025-05-12 10:45:38 +02:00

29 lines
545 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=09
. /lib/functions.sh
. /lib/functions/uci-defaults.sh
. /lib/functions/system.sh
boot() {
. /lib/functions.sh
. /lib/functions/uci-defaults.sh
. /lib/functions/system.sh
board=$(board_name)
case "$board" in
edgecore,eap112)
echo 486 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio486/direction
echo 0 > /sys/class/gpio/gpio486/value
sleep 1
echo "in" > /sys/class/gpio/gpio486/direction
echo 486 > /sys/class/gpio/unexport
esac
}