用于复制Android丢失文件的脚本

时间:2014-09-06 11:40:56

标签: android bash

好吧我正在尝试创建一个脚本,如果通过检查脚本找不到该文件,将从安全位置复制文件,因此如果找不到该文件,它将激活另一个将重新定位的脚本(从安全位置传输文件)意味着道路)

#!/system/bin/sh

clear
if
    sleep 2
    echo ""
    echo "SPL ENGINE CORE is it installed ?"
    sleep 2
    echo ""
    echo "Checking for SPL ENGINE A.I. CORE ..."
    sleep 1

    if [ -e /system/spl_engine_core ]; then
        echo ""
        echo "SPL ENGINE CORE is installed..."
        sleep 1
    else
        echo ""
        echo "SPL ENGINE CORE binary was not found,please Re-flash SPL Transcender then try again!"
        sleep 1
    then 
    echo""
    echo"Everything is installed."
    echo"SPL Engine is online and working"
else
    echo""
    echo"Some files are missing"
    echo"Initiating repiring protocol"
    echo"AI is making repairs"

    if [""echo"AI is making repairs""]; then
        sh /system/spl_engine_core/secure/files/engine.core/spl_smart_repair_ai.sh; 
        echo "Repair succesfull"
        echo "SPL Core is online again"
    else
        echo ""
        echo "Initiating uninstall"
        sh system/bin/spl_uninstall
        echo"Please reinstall"
exit 0

0 个答案:

没有答案