SmartAudio/package/allwinner/misc-upgrade/aw_upgrade_log.sh

22 lines
414 B
Bash
Raw Normal View History

2018-07-13 01:31:50 +00:00
#!/bin/sh
count=0
while [ ! -e /dev/by-name/extend ] && [ ! -e /dev/by-name/recovery ] && [ $count -lt 10 ]
do
let count+=1
sleep 1
done
count=0
2018-12-13 10:48:25 +00:00
while [ ! -e /dev/by-name/UDISK ] && [ $count -lt 10 ]
2018-07-13 01:31:50 +00:00
do
let count+=1
sleep 1
done
if [ -e /dev/by-name/extend ];then
/sbin/aw_upgrade_process.sh 1>/dev/console 2>/dev/console
else
/sbin/aw_upgrade_normal.sh 1>/dev/console 2>/dev/console
fi