dd: 参数 ddimg 改成 img

This commit is contained in:
bin456789
2023-06-05 19:45:07 +08:00
parent 2e10b9390e
commit ecc3134479
3 changed files with 11 additions and 11 deletions

View File

@ -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