mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 07:23:03 +02:00
convert-dns-settings: Remove DNS variable from PPP profiles
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user