#!/bin/bash # This file should not be modified -- make local changes to # /etc/ppp/ip-up.local instead PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH LOGDEVICE=$6 REALDEVICE=$1 [ -f /etc/sysconfig/network-scripts/ifcfg-${LOGDEVICE} ] && /etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE} [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@" if [ x"$DNS1" != 0 ] then if [ -f /etc/resolv.conf] then mv /etc/resolv.conf /etc/resolv.conf.ppp fi echo "search tin.it"> /etc/resolv.conf echo "nameserver " $DNS1 >> /etc/resolv.conf echo "nameserver " $DNS2 >> /etc/resolv.conf fi exit 0