chore(all): update to v0.11.2

This commit is contained in:
砼砼 2021-10-12 03:02:10 +08:00
parent eafa572666
commit f093ee4c2b
No known key found for this signature in database
GPG Key ID: 3FDE30A50EA2CCEA
2 changed files with 23 additions and 1 deletions

View File

@ -46,4 +46,4 @@
- `redpill_tool_chain.sh add <URL>`添加扩展驱动
- `redpill_tool_chain.sh del <ID>`删除扩展驱动
- `redpill_tool_chain.sh run <platform_version>`自定义引导构建过程
- `dd if=$(ls -lt ./images/redpill-* | awk 'NR==1{print $9}') of=/dev/synoboot bs=4M && sync`写入引导
- 使用`syno.sh`写入引导

22
syno.sh Normal file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
cd $(dirname $(readlink -f "$0"))
S='images/redpill-*'
T='/dev/synoboot'
IMG_FILE=`ls -lt ${S} 2>/dev/null | awk 'NR==1{print $9}'`
if [ ! -b "${T}" ];then
echo "目标地址不存在:${T}"
exit 1
fi
if [ -f "${IMG_FILE}" ];then
echo "准备写入镜像:${PWD}/${IMG_FILE}"
echo "到设备:${T}"
# dd if="${IMG_FILE}" of="${T}" bs=4M conv=nocreat oflag=sync status=progress
else
echo "不是有效的文件:${IMG_FILE}"
ls -lt ${S}
fi