diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-12-06 15:49:42 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-12-06 15:49:42 +0800 |
commit | 1850f3ddf6f8f07cd29941e8b20795a5ed69b860 (patch) | |
tree | b146f767f8dbfe3b39934e305efc41d60fbc2a3b /distro/debian/isoinfo.common | |
parent | 524e6162b6a8cbd0d413b7f7d35dd32e6d00c36c (diff) | |
download | liveusb-builder-1850f3ddf6f8f07cd29941e8b20795a5ed69b860.tar.xz |
distro/debian: update to 9.6.0
Diffstat (limited to 'distro/debian/isoinfo.common')
-rw-r--r-- | distro/debian/isoinfo.common | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/distro/debian/isoinfo.common b/distro/debian/isoinfo.common index 9ca156e..44da88b 100644 --- a/distro/debian/isoinfo.common +++ b/distro/debian/isoinfo.common @@ -1,6 +1,21 @@ -_isover=8.6.0 +_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 +} |