Skip to content

Commit

Permalink
chore(all): update to v0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tossp committed Oct 11, 2021
1 parent eafa572 commit f093ee4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 22 additions & 0 deletions syno.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f093ee4

Please sign in to comment.