mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +00:00
Also moved script to disable tx checksum for ath11k mesh interfaces into `mac80211`. Signed-off-by: Sean Khan <datapronix@protonmail.com>
18 lines
371 B
Bash
18 lines
371 B
Bash
#!/bin/sh
|
|
# shellcheck disable=1090
|
|
|
|
[ "$ACTION" != "add" ] && exit
|
|
|
|
INC="/lib/netifd/offload/disable_offloads.sh"
|
|
. "$INC" 2> /dev/null || {
|
|
logger -t "$PROG" -p user.error "missing include script $INC. exiting..."
|
|
exit 1
|
|
}
|
|
|
|
# Only disable offloads for physical interfaces
|
|
if [ -r "/sys/class/net/$INTERFACE/device" ]; then
|
|
disable_offload "$INTERFACE"
|
|
fi
|
|
|
|
exit 0
|