blob: 25b736c92cfdf56f8904db0834a2db2614e183f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Generate dnsmasq configuration
. /etc/local.d/vars.sh
conf="/etc/dnsmasq.conf"
cat > "$conf" <<EOF
no-resolv
$(for server in $dns_servers ; do printf 'server=%s\n' $server ; done)
domain-needed
except-interface=$wan
expand-hosts
domain=$domain
dhcp-range=$dhcp_range
# This is the default
#dhcp-leasefile=/var/lib/misc/dnsmasq.leases
dhcp-authoritative
EOF
echo "Generated dnasmasq config:"
cat $conf
. /etc/local.d/vars_end.sh
|