fix(x86): handle missing uci dhcp.server option

This commit is contained in:
wpetit 2023-03-06 13:10:03 +01:00
parent 260a9b4fae
commit 7d2c56f81b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ main() {
service firewall restart
# Forward DNS queries to public DNS
uci -q delete dhcp.@dnsmasq[0].server
( uci -q delete dhcp.@dnsmasq[0].server || exit 0 )
uci add_list dhcp.@dnsmasq[0].server="8.8.8.8"
uci add_list dhcp.@dnsmasq[0].server="8.8.4.4"