Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Oct 21, 2023
1 parent b8ca72b commit 666b8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmptcprouter/files/etc/hotplug.d/iface/00-nego
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
# Needed for some device, like rtl8156 2.5G USB adapter
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && ([ -n "$(lsusb | grep 8156)" ] || [ -n "$(ethtool $DEVICE | grep 2500)" ]) && ethtool -s $DEVICE autoneg on
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && [ -n "$(lsusb | grep 8156)" ] && [ -n "$(ethtool $DEVICE | grep 2500)" ] && ethtool -s $DEVICE autoneg on

0 comments on commit 666b8fb

Please sign in to comment.