mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
commit
1370355f83
9 changed files with 56 additions and 24 deletions
3
openmptcprouter/files/etc/hotplug.d/iface/00-nego
Normal file
3
openmptcprouter/files/etc/hotplug.d/iface/00-nego
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue