mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
boot() {
|
|
case $(board_name) in
|
|
redmi,ax6|\
|
|
xiaomi,ax3600)
|
|
# OTA handling should not be used. Reset it just in case.
|
|
fw_setenv flag_ota_reboot 0
|
|
# Not strictly needed but useful to handle partition crash condition
|
|
fw_setenv flag_boot_success 1
|
|
;;
|
|
zte,mf269)
|
|
mac_addr=$(mtd_get_mac_binary mac 0x0)
|
|
macaddr_add $mac_addr 2 > /sys/devices/platform/soc/c000000.wifi/ieee80211/phy0/macaddress
|
|
macaddr_add $mac_addr 3 > /sys/devices/platform/soc/c000000.wifi/ieee80211/phy1/macaddress
|
|
wifi
|
|
;;
|
|
qnap,301w)
|
|
ssdk_sh debug phy set 0 0x4004c441 0x8 1> /dev/kmsg 2>&1
|
|
ssdk_sh debug phy set 0 0x40070000 0x3200 1> /dev/kmsg 2>&1
|
|
ssdk_sh debug phy set 8 0x4004c441 0x8 1> /dev/kmsg 2>&1
|
|
ssdk_sh debug phy set 8 0x40070000 0x3200 1> /dev/kmsg 2>&1
|
|
;;
|
|
esac
|
|
|
|
for q in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus); do echo f > $q; done
|
|
for q in $(ls /sys/class/net/eth*/queues/rx-*/rps_flow_cnt); do echo 4096 > $q; done
|
|
for q in $(ls /sys/class/net/eth*/queues/tx-*/xps_cpus); do echo f > $q; done
|
|
echo 32768 > /proc/sys/net/core/rps_sock_flow_entries
|
|
}
|