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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user