Skip to content
Snippets Groups Projects
Commit f4294e0c authored by Bob Mottram's avatar Bob Mottram
Browse files

resolv.conf path

parent 7f80caf1
No related branches found
No related tags found
No related merge requests found
...@@ -243,7 +243,7 @@ iface eth0 inet static ...@@ -243,7 +243,7 @@ iface eth0 inet static
fi fi
# configure DNS # configure DNS
resolvconf=$rootdir/var/run/NetworkManager/resolv.conf resolvconf=$rootdir/etc/resolv.conf
echo 'domain localdomain' > $resolvconf echo 'domain localdomain' > $resolvconf
echo 'search localdomain' >> $resolvconf echo 'search localdomain' >> $resolvconf
echo "nameserver $NAMESERVER1" >> $resolvconf echo "nameserver $NAMESERVER1" >> $resolvconf
......
...@@ -316,7 +316,7 @@ function read_configuration_values { ...@@ -316,7 +316,7 @@ function read_configuration_values {
if grep -q "DEBIAN_REPO" $CONFIGURATION_FILE; then if grep -q "DEBIAN_REPO" $CONFIGURATION_FILE; then
read_config_param "DEBIAN_REPO" 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
fi fi
} }
......
...@@ -196,7 +196,7 @@ function configure_dns { ...@@ -196,7 +196,7 @@ function configure_dns {
return return
fi fi
resolvconf=/var/run/NetworkManager/resolv.conf resolvconf=/etc/resolv.conf
# allow changes to resolv.conf # allow changes to resolv.conf
chattr -i $resolvconf chattr -i $resolvconf
......
...@@ -310,7 +310,7 @@ function resolve_dns_via_tor { ...@@ -310,7 +310,7 @@ function resolve_dns_via_tor {
sed -i 's|, domain-name-servers||g' /etc/dhcp/dhclient.conf sed -i 's|, domain-name-servers||g' /etc/dhcp/dhclient.conf
# point resolv.conf to tor # point resolv.conf to tor
resolvconf=/var/run/NetworkManager/resolv.conf resolvconf=/etc/resolv.conf
chattr -i $resolvconf chattr -i $resolvconf
echo 'nameserver 127.0.0.1:53' > $resolvconf echo 'nameserver 127.0.0.1:53' > $resolvconf
chattr +i $resolvconf chattr +i $resolvconf
...@@ -378,7 +378,7 @@ function route_outgoing_traffic_through_tor { ...@@ -378,7 +378,7 @@ function route_outgoing_traffic_through_tor {
/sbin/sysctl -p -q /sbin/sysctl -p -q
fi fi
resolvconf=/var/run/NetworkManager/resolv.conf resolvconf=/etc/resolv.conf
chattr -i $resolvconf chattr -i $resolvconf
echo 'domain localdomain' > $resolvconf echo 'domain localdomain' > $resolvconf
echo 'search localdomain' >> $resolvconf echo 'search localdomain' >> $resolvconf
......
...@@ -76,7 +76,7 @@ COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt ...@@ -76,7 +76,7 @@ COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
REMOTE_BACKUPS_LOG=/var/log/remotebackups.log REMOTE_BACKUPS_LOG=/var/log/remotebackups.log
# message if something fails to install # 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 # Default diffie-hellman key length in bits
DH_KEYLENGTH=2048 DH_KEYLENGTH=2048
......
...@@ -466,7 +466,7 @@ function networks_from_file { ...@@ -466,7 +466,7 @@ function networks_from_file {
fi fi
done < $WIFI_NETWORKS_FILE done < $WIFI_NETWORKS_FILE
resolvconf=/var/run/NetworkManager/resolv.conf resolvconf=/etc/resolv.conf
chattr -i $resolvconf chattr -i $resolvconf
systemctl restart network-manager systemctl restart network-manager
#ifconfig ${WIFI_INTERFACE} up #ifconfig ${WIFI_INTERFACE} up
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment