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

This commit is contained in:
Frédéric Pierret (fepitre) 2020-07-28 16:02:34 +02:00
parent 856e46c3fc
commit 91bce584a2
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -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