vp-build/srcpkgs/ppp/files/ip-up.d.dns.sh
Juan RP f1d2df23c2 Added ppp-2.4.5 build template.
--HG--
extra : convert_revision : 277478e29b83b29d1d40ae95b5c522ea909f9647
2010-04-12 23:53:08 +02:00

8 lines
229 B
Bash

#!/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