resolv.conf path
This commit is contained in:
parent
7f80caf119
commit
f4294e0c22
|
@ -243,7 +243,7 @@ iface eth0 inet static
|
|||
fi
|
||||
|
||||
# configure DNS
|
||||
resolvconf=$rootdir/var/run/NetworkManager/resolv.conf
|
||||
resolvconf=$rootdir/etc/resolv.conf
|
||||
echo 'domain localdomain' > $resolvconf
|
||||
echo 'search localdomain' >> $resolvconf
|
||||
echo "nameserver $NAMESERVER1" >> $resolvconf
|
||||
|
|
|
@ -316,7 +316,7 @@ function read_configuration_values {
|
|||
|
||||
if grep -q "DEBIAN_REPO" $CONFIGURATION_FILE; then
|
||||
read_config_param "DEBIAN_REPO"
|
||||
CHECK_MESSAGE=$"Check your internet connection, /etc/network/interfaces and /var/run/NetworkManager/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
||||
CHECK_MESSAGE=$"Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -196,7 +196,7 @@ function configure_dns {
|
|||
return
|
||||
fi
|
||||
|
||||
resolvconf=/var/run/NetworkManager/resolv.conf
|
||||
resolvconf=/etc/resolv.conf
|
||||
|
||||
# allow changes to resolv.conf
|
||||
chattr -i $resolvconf
|
||||
|
|
|
@ -310,7 +310,7 @@ function resolve_dns_via_tor {
|
|||
sed -i 's|, domain-name-servers||g' /etc/dhcp/dhclient.conf
|
||||
|
||||
# point resolv.conf to tor
|
||||
resolvconf=/var/run/NetworkManager/resolv.conf
|
||||
resolvconf=/etc/resolv.conf
|
||||
chattr -i $resolvconf
|
||||
echo 'nameserver 127.0.0.1:53' > $resolvconf
|
||||
chattr +i $resolvconf
|
||||
|
@ -378,7 +378,7 @@ function route_outgoing_traffic_through_tor {
|
|||
/sbin/sysctl -p -q
|
||||
fi
|
||||
|
||||
resolvconf=/var/run/NetworkManager/resolv.conf
|
||||
resolvconf=/etc/resolv.conf
|
||||
chattr -i $resolvconf
|
||||
echo 'domain localdomain' > $resolvconf
|
||||
echo 'search localdomain' >> $resolvconf
|
||||
|
|
|
@ -76,7 +76,7 @@ COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
|
|||
REMOTE_BACKUPS_LOG=/var/log/remotebackups.log
|
||||
|
||||
# message if something fails to install
|
||||
CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /var/run/NetworkManager/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
||||
CHECK_MESSAGE="Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
|
||||
|
||||
# Default diffie-hellman key length in bits
|
||||
DH_KEYLENGTH=2048
|
||||
|
|
|
@ -466,7 +466,7 @@ function networks_from_file {
|
|||
fi
|
||||
done < $WIFI_NETWORKS_FILE
|
||||
|
||||
resolvconf=/var/run/NetworkManager/resolv.conf
|
||||
resolvconf=/etc/resolv.conf
|
||||
chattr -i $resolvconf
|
||||
systemctl restart network-manager
|
||||
#ifconfig ${WIFI_INTERFACE} up
|
||||
|
|
Loading…
Reference in New Issue