summaryrefslogtreecommitdiff
path: root/package/ppp/files/etc/ppp/ip-down.d/01-resolver
blob: 78eaea035b898213c48141c7ae50f598a41e126f (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
        if [ -f /etc/ppp/resolv.prev ]; then
                cp -f /etc/ppp/resolv.prev /etc/resolv.conf
        else
                rm -f /etc/resolv.conf
        fi
fi