DNS: Write name servers received from ISP to /var/run/dns{1,2}

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-01-07 13:35:45 +00:00
parent 4e2d3325af
commit 1434fa0df5
6 changed files with 20 additions and 41 deletions

View File

@@ -27,6 +27,9 @@ main() {
if [ -s "/var/ipfire/ppp/settings" ]; then
eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
# Remove DNS, DNS1 and DNS2
sed -i "/^DNS[12]?=/d" /var/ipfire/ppp/settings
elif [ -s "/var/ipfire/dns/settings" ]; then
eval $(/usr/local/bin/readhash /var/ipfire/dns/settings)
fi