fix(x86): handle missing uci dhcp.server option
This commit is contained in:
parent
260a9b4fae
commit
7d2c56f81b
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue