#!/bin/sh ps w |grep "udhcpd_eth"|grep -v grep if [ $? -eq 0 ] ; then eth_dhcp=`ps |grep "udhcpd_eth"|grep -v grep | awk '{ print $1}'` echo "kill -9 $eth_dhcp" kill -9 $eth_dhcp fi ps route #ip route show table 12 #ip rule show #ip rule del table 12 #ip route del dev ppp0 table 12 #route #ip route show table 12 #ip rule show ifconfig iptables -t nat -vnL POSTROUTING #iptables -t nat -D POSTROUTING -s 12.1.1.0/24 -o ppp0 -j MASQUERADE iptables -t nat -D POSTROUTING -o ppp0 -j MASQUERADE echo "eth_offline config end"