openwrt/packages/luci-app-ocserv/root/etc/hotplug.d/iface/99-fq-tuning
Ivan Cherniy 31c9925b8c luci-app-ocserv: default MTU 1400 and fq qdisc on wan
Previously uncommitted work: MTU default in the form and uci-defaults,
and a hotplug script that sets the fq qdisc on the wan device.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 10:14:37 +03:00

8 lines
210 B
Shell
Executable file

#!/bin/sh
[ "$ACTION" = ifup ] || exit 0
[ "$INTERFACE" = wan ] || exit 0
[ -n "$DEVICE" ] || exit 0
command -v tc >/dev/null 2>&1 || exit 0
tc qdisc replace dev "$DEVICE" root fq limit 20000 flow_limit 1000