#!/bin/bash
wget -O /usr/local/basic/set_upnp_zj.sh  http://tw15b0178.onething.net:9090/tool/scripts/set_upnp_zj.sh 
chmod +x /usr/local/basic/set_upnp_zj.sh
/bin/bash  /usr/local/basic/set_upnp_zj.sh
if [ $(cat /etc/rc.local | grep -c 'set_upnp_zj.sh') -eq 0 ];then
    sed -i "/^exit 0/i /bin/bash /usr/local/basic/set_upnp_zj.sh" /etc/rc.local
fi
