From 91bce584a2645729a84f95370c51af0a9c33e351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Tue, 28 Jul 2020 16:02:34 +0200 Subject: [PATCH] Fix regex in qubes-fix-nm-conf.sh --- network/qubes-fix-nm-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/qubes-fix-nm-conf.sh b/network/qubes-fix-nm-conf.sh index 42e5f4a..915998e 100755 --- a/network/qubes-fix-nm-conf.sh +++ b/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