mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update setup-network.sh
This commit is contained in:
parent
58cae88f2a
commit
ea58b129f9
|
|
@ -633,9 +633,9 @@ fi
|
|||
# FIX: For issue #13, Raspbian Buster OS unable to correct nameserver entry in /etc/resolv.conf hence,
|
||||
# need to correct this entry for downloading the files again:
|
||||
if ! isAvailableReqDependancies; then
|
||||
if [ ! `sudo cat /etc/resolv.conf 2>/dev/null | grep "8.8.8.8"` ]; then
|
||||
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
||||
echo "[Install]: Google nameserver 8.8.8.8 added into /etc/resolv.conf."
|
||||
if [ ! `sudo cat /etc/resolv.conf 2>/dev/null | grep "8.8.4.4"` ]; then
|
||||
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
|
||||
echo "[Install]: Google nameserver 8.8.4.4 added into /etc/resolv.conf."
|
||||
echo "[Install]: Now retrying 2nd time to download required dependancies ..."
|
||||
downloadReqDependancies
|
||||
fi
|
||||
|
|
@ -661,7 +661,7 @@ cat > /etc/dnsmasq.conf <<EOF
|
|||
interface=lo,${apInterfaceName} #Use interfaces lo and ${apInterfaceName}
|
||||
no-dhcp-interface=lo,${wlanInterfaceName}
|
||||
bind-interfaces #Bind to the interfaces
|
||||
server=8.8.8.8 #Forward DNS requests to Google DNS
|
||||
server=8.8.4.4 #Forward DNS requests to Google DNS
|
||||
#domain-needed #Don't forward short names
|
||||
bogus-priv #Never forward addresses in the non-routed address spaces
|
||||
dhcp-range=$apDhcpRange
|
||||
|
|
|
|||
Loading…
Reference in New Issue