nss-packages-qosmio/qca-nss-ecm/files/disable_offloads.hotplug
Sean Khan 80a6c3f593 nss-ecm: remove redundant check ACTION check
The script already exits if $ACTION != "add", no need to double check.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
2024-10-14 16:44:02 -04:00

18 lines
461 B
Bash

#!/bin/sh
[ "$ACTION" != "add" ] && exit
. /lib/netifd/offload/disable_offloads.sh
if [ -n "$INTERFACE" ]; then
disable_offload "$INTERFACE"
# Disable tx-checksumming for mesh interfaces, as it breaks multicast traffic
if [ "$DEVTYPE" = "wlan" ]; then
if ubus call network.wireless status | jsonfilter -e '@[*].interfaces[@.config.mode="mesh"].ifname' | grep -q "$INTERFACE"; then
disable_feature tx-checksumming "$INTERFACE"
fi
fi
fi
exit 0