Files
openwrt_NSS_ACW/target/linux/ipq806x/base-files/etc/init.d/bootcount
ACwifidude e6ecbfd063 nlbwmon fix
2022-07-09 13:34:57 -05:00

30 lines
561 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
. "$IPKG_INSTROOT/lib/upgrade/asrock.sh"
boot() {
case $(board_name) in
asrock,g10)
asrock_bootconfig_mangle "bootcheck" && reboot
;;
edgecore,ecw5410)
fw_setenv bootcount 0
;;
linksys,ea7500-v1 |\
linksys,ea8500)
mtd resetbc s_env || true
;;
esac
sysctl -w vm.min_free_kbytes=65536
sysctl -w net.netfilter.nf_conntrack_max=32768
#nlbwmon fix
sysctl -w net.core.rmem_default=524288
sysctl -w net.core.wmem_default=524288
sysctl -w net.core.rmem_max=1048576
sysctl -w net.core.wmem_max=1048576
}