Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/mirrorselect
Context not available. | |||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
BSDCFG_SHARE="/usr/share/bsdconfig" | |||||
. $BSDCFG_SHARE/common.subr || exit 1 | |||||
: ${BSDDIALOG_OK=0} | : ${BSDDIALOG_OK=0} | ||||
: ${BSDDIALOG_CANCEL=1} | : ${BSDDIALOG_CANCEL=1} | ||||
: ${BSDDIALOG_HELP=2} | : ${BSDDIALOG_HELP=2} | ||||
Context not available. | |||||
: ${BSDDIALOG_ERROR=255} | : ${BSDDIALOG_ERROR=255} | ||||
exec 3>&1 | exec 3>&1 | ||||
MIRROR=`bsddialog --backtitle "FreeBSD Installer" \ | MIRROR=`bsddialog --backtitle "$OSNAME Installer" \ | ||||
--title "Mirror Selection" --extra-button --extra-label "Other" \ | --title "Mirror Selection" --extra-button --extra-label "Other" \ | ||||
--menu "Please select the site closest to you or \"other\" if you'd like to specify a different choice. Also note that not every site listed here carries more than the base distribution kits. Only Primary sites are guaranteed to carry the full range of possible distributions. Select a site that's close!" \ | --menu "Please select the site closest to you or \"other\" if you'd like to specify a different choice. Also note that not every site listed here carries more than the base distribution kits. Only Primary sites are guaranteed to carry the full range of possible distributions. Select a site that's close!" \ | ||||
0 0 16 \ | 0 0 16 \ | ||||
Context not available. | |||||
;; | ;; | ||||
$BSDDIALOG_EXTRA) | $BSDDIALOG_EXTRA) | ||||
exec 3>&1 | exec 3>&1 | ||||
BSDINSTALL_DISTSITE=`bsddialog --backtitle "FreeBSD Installer" \ | BSDINSTALL_DISTSITE=`bsddialog --backtitle "$OSNAME Installer" \ | ||||
--title "Mirror Selection" \ | --title "Mirror Selection" \ | ||||
--inputbox "Please enter the URL to an alternate FreeBSD mirror:" \ | --inputbox "Please enter the URL to an alternate $OSNAME mirror:" \ | ||||
0 74 "$BSDINSTALL_DISTSITE" 2>&1 1>&3` | 0 74 "$BSDINSTALL_DISTSITE" 2>&1 1>&3` | ||||
MIRROR_BUTTON=$? | MIRROR_BUTTON=$? | ||||
exec 3>&- | exec 3>&- | ||||
Context not available. |