blob: 44da88b710a8c96601a6f84d01f9fe8a336d50cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
_isover=9.6.0
ISONAME="$DISTRONAME $_isover amd64 ${_desktop}"
ISOURL="${_isover}-live/amd64/iso-hybrid/debian-live-${_isover}-amd64-${_desktop,,}.iso"
VERIFY=sha512chk
mirrorlist=(
https://mirrors.tuna.tsinghua.edu.cn/debian-cd
http://mirrors.ustc.edu.cn/debian-cd
)
sha512chk() {
local _cksum _hashsum
_cksum=$(sha512sum "$ISOPATH/$ISOFILE" | cut -d' ' -f1)
_hashsum=$(grep "${ISOFILE}\$" distro/debian/SHA512SUMS | cut -d' ' -f1)
if [[ $_cksum == $_hashsum ]]; then
msg "$ISOFILE ok."
else
msg "$ISOFILE checksum bad!" && return 1
fi
}
|