Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/checksum
Context not available. | |||||
test -f $BSDINSTALL_DISTDIR/MANIFEST || exit 0 | test -f $BSDINSTALL_DISTDIR/MANIFEST || exit 0 | ||||
BSDCFG_SHARE="/usr/share/bsdconfig" | |||||
. $BSDCFG_SHARE/common.subr || exit 1 | |||||
percentage=0 | percentage=0 | ||||
for dist in $DISTRIBUTIONS; do | for dist in $DISTRIBUTIONS; do | ||||
distname=$(basename $dist .txz) | distname=$(basename $dist .txz) | ||||
Context not available. | |||||
for i in $DISTRIBUTIONS; do | for i in $DISTRIBUTIONS; do | ||||
items="$items $i `eval echo \\\${status_$(basename $i .txz):--11}`" | items="$items $i `eval echo \\\${status_$(basename $i .txz):--11}`" | ||||
done | done | ||||
bsddialog --backtitle "FreeBSD Installer" --title "Checksum Verification" \ | bsddialog --backtitle "$OSNAME Installer" --title "Checksum Verification" \ | ||||
--mixedgauge "\nVerifying checksums of selected distributions.\n" \ | --mixedgauge "\nVerifying checksums of selected distributions.\n" \ | ||||
0 0 $percentage -- $items | 0 0 $percentage -- $items | ||||
Context not available. | |||||
eval "status_$distname=-2" | eval "status_$distname=-2" | ||||
case $(/bin/freebsd-version -u) in | case $(/bin/freebsd-version -u) in | ||||
*-ALPHA*|*-CURRENT|*-STABLE|*-PRERELEASE) | *-ALPHA*|*-CURRENT|*-STABLE|*-PRERELEASE) | ||||
bsddialog --backtitle "FreeBSD Installer" --title "Error" \ | bsddialog --backtitle "$OSNAME Installer" --title "Error" \ | ||||
--msgbox "The checksum for $dist does not match. It may have become corrupted, or it may be from a newer version of FreeBSD. Please check for a newer snapshot." 0 0 | --msgbox "The checksum for $dist does not match. It may have become corrupted, or it may be from a newer version of FreeBSD. Please check for a newer snapshot." 0 0 | ||||
;; | ;; | ||||
*) | *) | ||||
bsddialog --backtitle "FreeBSD Installer" --title "Error" \ | bsddialog --backtitle "$OSNAME Installer" --title "Error" \ | ||||
--msgbox "The checksum for $dist does not match. It may have become corrupted, and should be redownloaded." 0 0 | --msgbox "The checksum for $dist does not match. It may have become corrupted, and should be redownloaded." 0 0 | ||||
;; | ;; | ||||
esac | esac | ||||
Context not available. |