update-02.25

This commit is contained in:
github-actions[bot] 2022-02-25 20:30:36 +08:00
parent cc7b1478cf
commit e0eb322bc1
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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