mirror of
https://ghproxy.com/https://github.com/tossp/redpill-tool-chain.git
synced 2024-09-20 08:07:43 +00:00
chore(all): update to v0.11.2
This commit is contained in:
parent
eafa572666
commit
f093ee4c2b
|
@ -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
22
syno.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user