NetworkManager config - Add dns=default

This commit is contained in:
unman 2019-08-16 14:21:13 +00:00
parent c6f7984203
commit 3f11775899
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

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