Small fixes

pull/454/head
Igor Zalatov (from Citadel PC) 2022-09-11 12:34:27 +03:00
parent 2feb5866aa
commit ac380812fc
2 changed files with 1 additions and 2 deletions

View File

@ -1,3 +1,2 @@
f2fs
vfat
#usb-storage

View File

@ -83,7 +83,7 @@ download_firmware() {
echo "Download from $url"
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"
curl --connect-timeout 30 -s -m 60 -L "$url" ${progress} -o - | gzip -d | tar xf - -C /tmp && echo_c 32 "Received and unpacked" || die "Cannot retrieve $url"
curl --connect-timeout 30 -s -m 120 -L "$url" ${progress} -o - | gzip -d | tar xf - -C /tmp && echo_c 32 "Received and unpacked" || die "Cannot retrieve $url"
if [ "1" != "$skip_md5" ]; then
(cd /tmp && md5sum -s -c *.md5sum) || die "Wrong checksum!"
fi