iopsys-feed/qosmngr/files/etc/hotplug.d/iface/qos.hotplug
Rahul 776dc46d49 qosmngr: fix start up issues
Fixes the issue related to queue setup at boot.
Also resolved classification when source port is used as the
criteria.
2020-05-31 20:36:05 +05:30

18 lines
304 B
Bash

#!/bin/sh
[ "$ACTION" = ifup ] || exit 0
. /lib/functions/network.sh
network_get_device l3device $INTERFACE
[ -n "$l3device" ] || exit 0
wan_if="$(uci -q get network.wan.ifname)"
for intf in $wan_if; do
if [ "$intf" == "$l3device" ]; then
ubus call uci commit '{"config":"qos"}'
exit
fi
done