mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Only set nego on for rtl8156
This commit is contained in:
parent
4566926f4b
commit
f2b918f19e
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" ] && ethtool -s $DEVICE autoneg on
|
||||
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && [ -n "$(lsusb | grep 8156)" ] && ethtool -s $DEVICE autoneg on
|
Loading…
Reference in a new issue