mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Only set nego on interface at 2.5Gbs
This commit is contained in:
parent
b69d694cc7
commit
ac1054f079
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
# Needed for some device, like rtl8156 2.5G USB adapter
|
||||
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && [ -n "$(lsusb | grep 8156)" ] && ethtool -s $DEVICE autoneg on
|
||||
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && [ -n "$(lsusb | grep 8156)" ] [ -n "$(ethtool $DEVICE | grep 2500)" ] && ethtool -s $DEVICE autoneg on
|
Loading…
Add table
Add a link
Reference in a new issue