1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Merge pull request #142 from Ysurac/develop

sync
This commit is contained in:
suyuan 2021-05-30 00:03:27 +08:00 committed by GitHub
commit 1370355f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 56 additions and 24 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
# Needed for some device, like rtl8156 2.5G USB adapter
[ "$ACTION" = "ifup" ] && [ -n "$DEVICE" ] && ethtool -s $DEVICE autoneg on

View file

@ -199,6 +199,10 @@ if [ -z "$(uci -q get unbound.fwd_adguard_family)" ]; then
EOF
fi
if [ -z "$(grep nameserver /etc/resolv.conf)" ]; then
echo "nameserver 127.0.0.1" > /etc/resolv.conf
fi
rm -f /tmp/luci-indexcache
exit 0