Terminate IPCP if the peer refuses to agree to our IP address.
[mpls-ppp.git] / scripts / ip-up.local.add
blob80172093ac3d12685a91704dd80b7ae5f8cb830d
3 # This sample code shows you one way to modify your setup to allow automatic
4 # configuration of your resolv.conf for peer supplied DNS addresses when using
5 # the `usepeerdns' option.
7 # In my case I just added this to my /etc/ppp/ip-up.local script. You may need to 
8 # create an executable script if one does not exist.
10 # Nick Walker (nickwalker@email.com)
13 if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
14         rm -f /etc/ppp/resolv.prev
15         if [ -f /etc/resolv.conf ]; then
16                 cp /etc/resolv.conf /etc/ppp/resolv.prev
17                 grep domain /etc/ppp/resolv.prev > /etc/resolv.conf
18                 grep search /etc/ppp/resolv.prev >> /etc/resolv.conf
19                 cat /etc/ppp/resolv.conf >> /etc/resolv.conf
20         else
21                 cp /etc/ppp/resolv.conf /etc
22         fi