#!/bin/sh ps w |grep "udhcpd_usb"|grep -v grep if [ $? -eq 0 ] ; then eth_dhcp=`ps |grep "udhcpd_usb"|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 10.1.1.0/24 -o ppp0 -j MASQUERADE iptables -t nat -D POSTROUTING -o usb0 -j MASQUERADE #iptables -t nat -D POSTROUTING -o ppp0 -j MASQUERADE echo "usb_offline config end"