autoupdate: set a wait timer to confirm mount

This commit is contained in:
John Doe 2021-03-31 19:41:10 +08:00
parent bfe67ee10c
commit be121ad8bb
No known key found for this signature in database
GPG Key ID: 30F190E0C359CB4F

View File

@ -53,6 +53,7 @@ losetup -P $lodev FriendlyWrt.img
mkdir -p /mnt/img
mount -t ext4 ${lodev}p2 /mnt/img
echo -e '\e[92m解压已完成准备编辑镜像文件写入备份信息\e[0m'
sleep 10
cd /mnt/img
sysupgrade -b back.tar.gz
tar zxf back.tar.gz