update-02.25
This commit is contained in:
parent
cc7b1478cf
commit
e0eb322bc1
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
|
||||
[ "$(uci -q get network.lan.ifname)" ] || (uci -q set network.lan.ifname="`uci -q get network.lan.device`";uci commit network)
|
||||
[ "$(uci -q get network.wan.ifname)" ] || (uci -q set network.wan.ifname="`uci -q get network.wan.device`";uci commit network)
|
||||
[ "$(uci -q get network.wan6.ifname)" ] || (uci -q set network.wan6.ifname="`uci -q get network.wan6.device`";uci commit network)
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
for eth in $(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -vE "(@|\.)"); do
|
||||
[[ "$(ethtool -i $eth | grep 'r8125')" && ! "$(ubus call system board | grep VMware)" ]] && ethtool -s $eth autoneg on
|
||||
done
|
Loading…
Reference in New Issue