Update setup-network.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-06-05 02:36:16 +00:00
parent 58cae88f2a
commit ea58b129f9
1 changed files with 4 additions and 4 deletions

View File

@ -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