mirror of https://github.com/aredn/aredn.git
15 lines
571 B
Diff
15 lines
571 B
Diff
--- a/package/base-files/files/etc/rc.local
|
|
+++ b/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.
|
|
+
|
|
+BOARDID=$(/usr/local/bin/get_boardid)
|
|
+case "$BOARDID" in
|
|
+ 0xe885|0xe4e5|0xe6e5)
|
|
+ /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg on
|
|
+ ;;
|
|
+esac
|
|
+
|
|
exit 0
|