1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2021-05-28 17:47:33 +02:00
parent 0aa234d36b
commit d5fd515873

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