Parcourir la source

resolv.conf path

Bob Mottram il y a 7 ans
Parent
révision
f4294e0c22

+ 1
- 1
src/freedombone-image-customise Voir le fichier

@@ -243,7 +243,7 @@ iface eth0 inet static
243 243
     fi
244 244
 
245 245
     # configure DNS
246
-    resolvconf=$rootdir/var/run/NetworkManager/resolv.conf
246
+    resolvconf=$rootdir/etc/resolv.conf
247 247
     echo 'domain localdomain' > $resolvconf
248 248
     echo 'search localdomain' >> $resolvconf
249 249
     echo "nameserver $NAMESERVER1" >> $resolvconf

+ 1
- 1
src/freedombone-utils-config Voir le fichier

@@ -316,7 +316,7 @@ function read_configuration_values {
316 316
 
317 317
         if grep -q "DEBIAN_REPO" $CONFIGURATION_FILE; then
318 318
             read_config_param "DEBIAN_REPO"
319
-            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."
319
+            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."
320 320
         fi
321 321
     fi
322 322
 }

+ 1
- 1
src/freedombone-utils-dns Voir le fichier

@@ -196,7 +196,7 @@ function configure_dns {
196 196
         return
197 197
     fi
198 198
 
199
-    resolvconf=/var/run/NetworkManager/resolv.conf
199
+    resolvconf=/etc/resolv.conf
200 200
 
201 201
     # allow changes to resolv.conf
202 202
     chattr -i $resolvconf

+ 2
- 2
src/freedombone-utils-onion Voir le fichier

@@ -310,7 +310,7 @@ function resolve_dns_via_tor {
310 310
     sed -i 's|, domain-name-servers||g' /etc/dhcp/dhclient.conf
311 311
 
312 312
     # point resolv.conf to tor
313
-    resolvconf=/var/run/NetworkManager/resolv.conf
313
+    resolvconf=/etc/resolv.conf
314 314
     chattr -i $resolvconf
315 315
     echo 'nameserver 127.0.0.1:53' > $resolvconf
316 316
     chattr +i $resolvconf
@@ -378,7 +378,7 @@ function route_outgoing_traffic_through_tor {
378 378
         /sbin/sysctl -p -q
379 379
     fi
380 380
 
381
-    resolvconf=/var/run/NetworkManager/resolv.conf
381
+    resolvconf=/etc/resolv.conf
382 382
     chattr -i $resolvconf
383 383
     echo 'domain localdomain' > $resolvconf
384 384
     echo 'search localdomain' >> $resolvconf

+ 1
- 1
src/freedombone-utils-setup Voir le fichier

@@ -76,7 +76,7 @@ COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
76 76
 REMOTE_BACKUPS_LOG=/var/log/remotebackups.log
77 77
 
78 78
 # message if something fails to install
79
-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."
79
+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."
80 80
 
81 81
 # Default diffie-hellman key length in bits
82 82
 DH_KEYLENGTH=2048

+ 1
- 1
src/freedombone-utils-wifi Voir le fichier

@@ -466,7 +466,7 @@ function networks_from_file {
466 466
         fi
467 467
     done < $WIFI_NETWORKS_FILE
468 468
 
469
-    resolvconf=/var/run/NetworkManager/resolv.conf
469
+    resolvconf=/etc/resolv.conf
470 470
     chattr -i $resolvconf
471 471
     systemctl restart network-manager
472 472
     #ifconfig ${WIFI_INTERFACE} up