#!/bin/sh LOGFILE=/etc/ppp/ppp.log cp -f /etc/resolv.conf /etc/ppp/resolv.conf.orig cp -f /etc/ppp/resolv.conf /etc/resolv.conf date +"Date: %Y/%m/%d %H:%M" >/etc/ppp/current echo "Pid: $PPPD_PID" >>/etc/ppp/current echo "Tty: $PPP_TTY" >>/etc/ppp/current echo "Ttyname: $PPP_TTYNAME" >>/etc/ppp/current echo "Speed: $PPP_SPEED" >>/etc/ppp/current echo "Interface: $PPP_IFACE" >>/etc/ppp/current echo "Local address: $PPP_LOCAL" >>/etc/ppp/current echo "Remote address: $PPP_REMOTE" >>/etc/ppp/current if [ -n "$DNS1" ]; then echo "DNS: $DNS1" >>/etc/ppp/current fi if [ -n "$DNS2" ]; then echo "DNS: $DNS2" >>/etc/ppp/current fi