mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-18 08:02:46 +07:00
Bump to next branch
Host: Ubuntu 21.04
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# With offloading enabled, Samba becomes completely useless - transfers to a Windows PC freezes randomly
|
||||
# Disabling offloading should solve this - all RK3399
|
||||
|
||||
IFACE=$1
|
||||
EVENT=$2
|
||||
|
||||
if [[ "$EVENT" != "up" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if linux-version compare $(uname -r | cut -d '.' -f1,2) gt 4.4; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
ETHTOOL=/sbin/ethtool
|
||||
|
||||
[ -f $ETHTOOL ] || exit 2
|
||||
[ -d /sys/devices/platform/fe300000.ethernet/net/$IFACE ] || exit 3
|
||||
|
||||
$ETHTOOL -K $IFACE rx off tx off
|
||||
exit 0
|
||||
Reference in New Issue
Block a user