mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 07:28:56 +08:00
dd: 参数 ddimg 改成 img
This commit is contained in:
4
trans.sh
4
trans.sh
@ -91,7 +91,7 @@ if [ "$distro" = "alpine" ]; then
|
||||
exec reboot
|
||||
|
||||
elif [ "$distro" = "dd" ]; then
|
||||
case "$ddimg_type" in
|
||||
case "$img_type" in
|
||||
gz) prog=gzip ;;
|
||||
xz) prog=xz ;;
|
||||
esac
|
||||
@ -99,7 +99,7 @@ elif [ "$distro" = "dd" ]; then
|
||||
if [ -n "$prog" ]; then
|
||||
# alpine busybox 自带 gzip xz,但官方版也许性能更好
|
||||
apk add curl $prog
|
||||
curl -L $ddimg | $prog -dc >/dev/$xda
|
||||
curl -L $img | $prog -dc >/dev/$xda
|
||||
else
|
||||
echo 'Not supported'
|
||||
sleep 1m
|
||||
|
||||
Reference in New Issue
Block a user