+ parse "config dnsmasq"

This commit is contained in:
Simon Zolin
2020-04-23 12:13:41 +03:00
parent 5fbf28b9cf
commit da2a8daff2
3 changed files with 41 additions and 14 deletions

View File

@@ -1619,6 +1619,9 @@ If started as:
option limit '150'
option leasetime '12h'
config dnsmasq
option leasefile '/tmp/dhcp.leases'
* Write this yaml configuration:
dhcp:
@@ -1630,6 +1633,7 @@ If started as:
range_end: "192.168.8.249"
lease_duration: 86400
icmp_timeout_msec: 1000
dnsmasq_leasefile "/tmp/dhcp.leases"
* Read `/etc/config/dhcp`:
@@ -1654,16 +1658,6 @@ If started as:
- IP1
- IP2
* Read `/etc/config/dhcp`:
config dnsmasq
option leasefile '/tmp/dhcp.leases'
* Write this yaml configuration:
dhcp:
dnsmasq_leasefile "/tmp/dhcp.leases"
And service script starts AGH like this:
.../AdGuardHome --import-openwrt-config