mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 08:22:59 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user