diff options
Diffstat (limited to 'abs/core/ppp/ip-up.d.dns.sh')
-rw-r--r-- | abs/core/ppp/ip-up.d.dns.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/abs/core/ppp/ip-up.d.dns.sh b/abs/core/ppp/ip-up.d.dns.sh new file mode 100644 index 0000000..f9df543 --- /dev/null +++ b/abs/core/ppp/ip-up.d.dns.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then + [ -e /etc/resolv.conf ] && mv /etc/resolv.conf /etc/resolv.conf.backup.${IFNAME} + mv /etc/ppp/resolv.conf /etc/resolv.conf + chmod 644 /etc/resolv.conf +fi |