OCaml 4.14.0 rebuild: ocaml-ctypes 0.20.1-1
[arch-packages.git] / ppp / trunk / ip-up.d.dns.sh
blob0fc737eca1537c86d90bff551ef53bf325b17cbd
1 #!/bin/sh
3 if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then
4 if [ -x /usr/bin/resolvconf ]; then
5 /usr/bin/resolvconf -a ${IFNAME} </etc/ppp/resolv.conf
6 else
7 [ -e /etc/resolv.conf ] && mv /etc/resolv.conf /etc/resolv.conf.backup.${IFNAME}
8 mv /etc/ppp/resolv.conf /etc/resolv.conf
9 chmod 644 /etc/resolv.conf