Browse Source

Fix regex in qubes-fix-nm-conf.sh

Frédéric Pierret (fepitre) 3 years ago
parent
commit
91bce584a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      network/qubes-fix-nm-conf.sh

+ 1 - 1
network/qubes-fix-nm-conf.sh

@@ -17,6 +17,6 @@ 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
+	sed -i '/\[main\]/a dns=default' $FILE
 fi
 exit 0