1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-09 15:40:45 +02:00

Add updating to beta branch (#1339)

This commit is contained in:
nik0
2020-04-08 13:41:08 +02:00
committed by GitHub
parent be2cb151c0
commit 8947c91864
3 changed files with 68 additions and 13 deletions

View File

@@ -571,6 +571,22 @@ if [ -n "$F_cmd" ]; then
echo $processId
return
;;
betaupdate)
processId=$(ps | grep autoupdate.sh | grep -v grep)
if [ "$processId" == "" ]
then
echo "===============" >> /system/sdcard/log/update.log
date >> /var/log/update.log
if [ "$F_login" != "" ]; then
/system/sdcard/bin/busybox nohup /system/sdcard/autoupdate.sh -s -v -f -r beta -u $F_login >> "/system/sdcard/log/update.log" &
else
/system/sdcard/bin/busybox nohup /system/sdcard/autoupdate.sh -s -v -f -r beta >> "/system/sdcard/log/update.log" &
fi
processId=$(ps | grep autoupdate.sh | grep -v grep)
fi
echo $processId
return
;;
show_updateProgress)
processId=$(ps | grep autoupdate.sh | grep -v grep)