any.subr (252077) | any.subr (252112) |
---|---|
1if [ ! "$_MEDIA_ANY_SUBR" ]; then _MEDIA_ANY_SUBR=1 2# 3# Copyright (c) 2012-2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1if [ ! "$_MEDIA_ANY_SUBR" ]; then _MEDIA_ANY_SUBR=1 2# 3# Copyright (c) 2012-2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/any.subr 252077 2013-06-21 23:13:55Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/any.subr 252112 2013-06-23 10:48:26Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/any.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/media/cdrom.subr 36f_include $BSDCFG_SHARE/media/directory.subr 37f_include $BSDCFG_SHARE/media/dos.subr 38f_include $BSDCFG_SHARE/media/floppy.subr 39f_include $BSDCFG_SHARE/media/ftp.subr | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/any.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/media/cdrom.subr 36f_include $BSDCFG_SHARE/media/directory.subr 37f_include $BSDCFG_SHARE/media/dos.subr 38f_include $BSDCFG_SHARE/media/floppy.subr 39f_include $BSDCFG_SHARE/media/ftp.subr |
40f_include $BSDCFG_SHARE/media/http.subr |
|
40f_include $BSDCFG_SHARE/media/httpproxy.subr 41f_include $BSDCFG_SHARE/media/nfs.subr 42f_include $BSDCFG_SHARE/media/options.subr 43f_include $BSDCFG_SHARE/media/ufs.subr 44f_include $BSDCFG_SHARE/media/usb.subr 45f_include $BSDCFG_SHARE/struct.subr 46 47BSDCFG_LIBE="/usr/libexec/bsdconfig" --- 18 unchanged lines hidden (view full) --- 66{ 67 f_dialog_title "$msg_choose_installation_media" 68 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 69 f_dialog_title_restore 70 local prompt="$msg_choose_installation_media_description" 71 local menu_list=" 72 '1 $msg_cd_dvd' '$msg_install_from_a_freebsd_cd_dvd' 73 '2 $msg_ftp' '$msg_install_from_an_ftp_server' | 41f_include $BSDCFG_SHARE/media/httpproxy.subr 42f_include $BSDCFG_SHARE/media/nfs.subr 43f_include $BSDCFG_SHARE/media/options.subr 44f_include $BSDCFG_SHARE/media/ufs.subr 45f_include $BSDCFG_SHARE/media/usb.subr 46f_include $BSDCFG_SHARE/struct.subr 47 48BSDCFG_LIBE="/usr/libexec/bsdconfig" --- 18 unchanged lines hidden (view full) --- 67{ 68 f_dialog_title "$msg_choose_installation_media" 69 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 70 f_dialog_title_restore 71 local prompt="$msg_choose_installation_media_description" 72 local menu_list=" 73 '1 $msg_cd_dvd' '$msg_install_from_a_freebsd_cd_dvd' 74 '2 $msg_ftp' '$msg_install_from_an_ftp_server' |
74 '3 $msg_ftp_passive' 75 '$msg_install_from_an_ftp_server_thru_firewall' 76 '4 $msg_http' '$msg_install_from_an_ftp_server_thru_proxy' | 75 '3 $msg_http_proxy' 76 '$msg_install_from_an_ftp_server_thru_proxy' 77 '4 $msg_http_direct' '$msg_install_from_an_http_server' |
77 '5 $msg_directory' '$msg_install_from_the_existing_filesystem' 78 '6 $msg_nfs' '$msg_install_over_nfs' 79 '7 $msg_dos' '$msg_install_from_a_dos_partition' 80 '8 $msg_ufs' '$msg_install_from_a_ufs_partition' 81 '9 $msg_floppy' '$msg_install_from_a_floppy_disk_set' 82 'A $msg_usb' '$msg_install_from_a_usb_drive' 83 'X $msg_options' '$msg_view_set_various_media_options' 84 " # END-QUOTE --- 33 unchanged lines hidden (view full) --- 118 continue 119 elif [ $retval -ne 0 ]; then 120 return $FAILURE 121 fi 122 123 case "$mtag" in 124 ?" $msg_cd_dvd") f_media_set_cdrom ;; 125 ?" $msg_ftp") f_media_set_ftp ;; | 78 '5 $msg_directory' '$msg_install_from_the_existing_filesystem' 79 '6 $msg_nfs' '$msg_install_over_nfs' 80 '7 $msg_dos' '$msg_install_from_a_dos_partition' 81 '8 $msg_ufs' '$msg_install_from_a_ufs_partition' 82 '9 $msg_floppy' '$msg_install_from_a_floppy_disk_set' 83 'A $msg_usb' '$msg_install_from_a_usb_drive' 84 'X $msg_options' '$msg_view_set_various_media_options' 85 " # END-QUOTE --- 33 unchanged lines hidden (view full) --- 119 continue 120 elif [ $retval -ne 0 ]; then 121 return $FAILURE 122 fi 123 124 case "$mtag" in 125 ?" $msg_cd_dvd") f_media_set_cdrom ;; 126 ?" $msg_ftp") f_media_set_ftp ;; |
126 ?" $msg_ftp_passive") f_media_set_ftp_passive ;; 127 ?" $msg_http") f_media_set_http_proxy ;; | 127 ?" $msg_http_proxy") f_media_set_http_proxy ;; 128 ?" $msg_http_direct") f_media_set_http ;; |
128 ?" $msg_directory") f_media_set_directory ;; 129 ?" $msg_dos") f_media_set_dos ;; 130 ?" $msg_nfs") f_media_set_nfs ;; 131 ?" $msg_ufs") f_media_set_ufs ;; 132 ?" $msg_floppy") f_media_set_floppy ;; 133 ?" $msg_usb") f_media_set_usb ;; 134 ?" $msg_options") 135 f_media_options_menu --- 14 unchanged lines hidden --- | 129 ?" $msg_directory") f_media_set_directory ;; 130 ?" $msg_dos") f_media_set_dos ;; 131 ?" $msg_nfs") f_media_set_nfs ;; 132 ?" $msg_ufs") f_media_set_ufs ;; 133 ?" $msg_floppy") f_media_set_floppy ;; 134 ?" $msg_usb") f_media_set_usb ;; 135 ?" $msg_options") 136 f_media_options_menu --- 14 unchanged lines hidden --- |