convert-dns-settings: Remove DNS variable from PPP profiles

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2020-01-28 19:38:16 +00:00
parent 5d6ccc7a43
commit 3ee6ac9dad

View File

@@ -38,8 +38,8 @@ main() {
SERVERS+=( "${!var}" )
done
# Remove DNS0, DNS1 and DNS2 settings from profile file
sed -i "/^DNS[012]=/d" "${file}"
# Remove DNS, DNS0, DNS1 and DNS2 settings from profile file
sed -Ei "/^DNS[012]?=/d" "${file}"
fi
done