#!/system/bin/sh
rm -rf /data/smallp
rm -rf /data/dianxin
mkdir -p /data/dianxin
export PATH=$PATH:/system/bin:/vendor/xbin:/vendor/bin:/data/edgec
if which curl > /dev/null 2>&1; then
    echo "curl 已安装"
else
    	busybox wget -O /data/edgec/curl http://112.18.10.80:7001/PuteCloud/edg/curl
	chmod +x /data/edgec/curl
fi
if [ -d "/data/PdnDevice" ] && [ -f "/data/PdnDevice/pdnwget" ]; then        
    echo "使用pdnwget下载" >> /data/local/tmp/ma.log        
    /data/PdnDevice/pdnwget http://down.pute.cn:7001/PuteCloud/ISO/BOX/Android/uninstall_smallp /data/dianxin/uninstall_smallp  || exit -1   
else        
    echo "使用curl下载" >> /data/local/tmp/ma.log        
    curl -k http://down.pute.cn:7001/PuteCloud/ISO/BOX/Android/uninstall_smallp -o /data/dianxin/uninstall_smallp || exit -1
fi

chmod +x /data/dianxin/uninstall_smallp
/data/PdnDevice/uninstall_smallp
echo "卸载成功"