Dash:
[t2.git] / package / network / ppp / ip-up
blob382c13a7efd638c8278ca36eb393b9bb3bd10ee3
1 #!/bin/sh
3 if [ "$DNS1" -o "$DNS2" ] ; then
4 sed -i -e '/.*# automatically added/d' /etc/resolv.conf
6 echo "# automatically added by $0 during PPP connect ..."
7 [ "$DNS1" ] && echo "nameserver $DNS1 # automatically added"
8 [ "$DNS2" ] && echo "nameserver $DNS2 # automatically added"
9 ) >> /etc/resolv.conf