mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 11:30:09 +00:00
added 'DHCP_HOSTS=foo bar' to add dhcp-host entries to dnsmasq.conf
This commit is contained in:
parent
8ac2bb1a3e
commit
bfe7ca6f4b
@ -1802,7 +1802,13 @@ EOF
|
||||
[[ -n "$MTU" ]] && echo "dhcp-option-force=option:mtu,${MTU}" >> $CONFDIR/dnsmasq.conf
|
||||
[[ $ETC_HOSTS -eq 0 ]] && echo no-hosts >> $CONFDIR/dnsmasq.conf
|
||||
[[ -n "$ADDN_HOSTS" ]] && echo "addn-hosts=${ADDN_HOSTS}" >> $CONFDIR/dnsmasq.conf
|
||||
[[ -n "$DHCP_HOSTS" ]] && echo $DHCP_HOSTS >> $CONFDIR/dnsmaq.conf
|
||||
if [[ -n "$DHCP_HOSTS" ]]; then
|
||||
for HOST in $DHCP_HOSTS; do
|
||||
echo "dhcp-host=${HOST}" >> $CONFDIR/dnsmasq.conf
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
if [[ -n "$DNS_LOGFILE" ]]; then
|
||||
cat << EOF >> $CONFDIR/dnsmasq.conf
|
||||
log-queries
|
||||
|
@ -27,5 +27,5 @@ INTERNET_IFACE=eth0
|
||||
SSID=MyAccessPoint
|
||||
PASSPHRASE=12345678
|
||||
USE_PSK=0
|
||||
DHCP_HOSTS="dhcp-host=foo,bar\ndhcp-host=bar,foo"
|
||||
DHCP_HOSTS=
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user