mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +00:00
The script already exits if $ACTION != "add", no need to double check. Signed-off-by: Sean Khan <datapronix@protonmail.com>
18 lines
461 B
Bash
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
|