mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Fix BPI-R2 wifi
This commit is contained in:
parent
3e4546467d
commit
0b47954ed9
3 changed files with 21 additions and 28 deletions
|
@ -1,10 +1,19 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=19
|
||||
START=69
|
||||
|
||||
check_mtk_device() {
|
||||
config_get phy "$1" phy
|
||||
[ "$phy" = "mtkp2p0" ] && radiop2p="$1"
|
||||
[ "$phy" = "mtkp2p0" ] && {
|
||||
radiop2p="$1"
|
||||
[ -z "$(uci -q get wireless.default_$1.ifname)" ] && {
|
||||
uci -q batch <<-EOF
|
||||
set wireless.default_$1.ifname=mtkap0
|
||||
set wireless.default_$1.bss_load_update_period=0
|
||||
commit wireless
|
||||
EOF
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
find_radio() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue