if [ -f /var/run/pppoe-device ]; then read pppoe_dev < /var/run/pppoe-device read pppoe_pid < /var/run/${pppoe_dev}.pid rm -f /etc/ppp/peers/circuit.pppoe echo "kill $pppoe_pid" > /etc/ppp/ip-down999.pppoe fi