bugfix: ubnt: pbe 400/400-iso/620 port hang

fixes #165
This commit is contained in:
Joe Ayers 2020-03-22 21:37:41 -07:00 committed by Joe AE6XE
parent ff2e93565b
commit 7243fe082a
3 changed files with 19 additions and 0 deletions

View File

@ -110,4 +110,5 @@ CONFIG_PACKAGE_blockknownencryption=m
CONFIG_PREINITOPT=y
CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE=y
CONFIG_VTUN_SSL=n
CONFIG_PACKAGE_ethtool=y

View File

@ -0,0 +1,17 @@
Index: openwrt/package/base-files/files/etc/rc.local
===================================================================
--- openwrt.orig/package/base-files/files/etc/rc.local
+++ openwrt/package/base-files/files/etc/rc.local
@@ -1,4 +1,12 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
/etc/init.d/dnsmasq start
+
+BOARDID=$(/usr/local/bin/get_boardid)
+case "$BOARDID" in
+ 0xe885|0xe4e5|0xe6e5)
+ /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off
+ ;;
+esac
+
exit 0

View File

@ -30,3 +30,4 @@
713-delay-snmpd-startup.patch
714-vtun-openssl-fix.patch
715-set-min-free.patch
716-ubnt-pbe-100mb-port.patch