#!/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 export PATH=/sbin:/usr/sbin:/bin:/usr/bin if [ -x /usr/sbin/sendmail ];then /usr/sbin/sendmail -q 2>/dev/null >/dev/null & fi # for dynamic DNS support with gnome-ppp and kppp and draknet if grep -i '#.*ppp temp entry' /etc/resolv.conf >& /dev/null ; then PPP_TEMP_ENTRY=`grep '#.*ppp temp entry' /etc/resolv.conf | \ tail -1 | sed 's/.*ppp temp entry/# ppp temp entry/' ` else unset PPP_TEMP_ENTRY fi if [ -n "$PPP_TEMP_ENTRY" ]; then [ -n "$DNS1" ] && \ echo -e "nameserver $DNS1 $PPP_TEMP_ENTRY" >> /etc/resolv.conf [ -n "$DNS2" ] && \ echo -e "nameserver $DNS2 $PPP_TEMP_ENTRY" >> /etc/resolv.conf fi [ -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 "$@" exit 0