Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
set_preinit_iface() {
|
||||
ip link set eth0 up
|
||||
|
||||
case $(board_name) in
|
||||
ubnt,unifi-6-lr)
|
||||
ifname=eth0
|
||||
;;
|
||||
*)
|
||||
ifname=lan1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_preinit_iface
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
set_rps_sock_flow() {
|
||||
echo 1024 > /proc/sys/net/core/rps_sock_flow_entries
|
||||
}
|
||||
|
||||
boot_hook_add preinit_main set_rps_sock_flow
|
||||
|
||||
Reference in New Issue
Block a user