mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Initialize resolv.conf
This commit is contained in:
parent
0aa234d36b
commit
d5fd515873
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue