Explorar o código

NetworkManager config - Add dns=default

unman %!s(int64=4) %!d(string=hai) anos
pai
achega
3f11775899
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      network/qubes-fix-nm-conf.sh

+ 3 - 0
network/qubes-fix-nm-conf.sh

@@ -16,4 +16,7 @@ fi
 if ! grep -q "^unmanaged-devices.*$VIFMAC" $FILE ; then
 	sed -i 's/^unmanaged-devices.*$/&,'$VIFMAC/ $FILE
 fi
+if ! grep -q "^dns=" $FILE ; then
+	sed -i '/\[main\] a dns=default' $FILE
+fi
 exit 0