Deleted Added
full compact
any.subr (251236) any.subr (251264)
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 251236 2013-06-01 23:58:44Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/any.subr 251264 2013-06-02 20:02:50Z 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/struct.subr

--- 27 unchanged lines hidden (view full) ---

63# See `struct.subr' and the above `media/*.subr' includes for more details.
64#
65f_media_get_type()
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"
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/struct.subr

--- 27 unchanged lines hidden (view full) ---

63# See `struct.subr' and the above `media/*.subr' includes for more details.
64#
65f_media_get_type()
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 hline="$hline_choose_help_for_more_information_on_media_types"
72 local menu_list
73
74 menu_list="
71 local menu_list="
75 '1 $msg_cd_dvd' '$msg_install_from_a_freebsd_cd_dvd'
76 '2 $msg_ftp' '$msg_install_from_an_ftp_server'
77 '3 $msg_ftp_passive'
78 '$msg_install_from_an_ftp_server_thru_firewall'
79 '4 $msg_http' '$msg_install_from_an_ftp_server_thru_proxy'
80 '5 $msg_directory' '$msg_install_from_the_existing_filesystem'
81 '6 $msg_nfs' '$msg_install_over_nfs'
82 '7 $msg_dos' '$msg_install_from_a_dos_partition'
83 '8 $msg_ufs' '$msg_install_from_a_ufs_partition'
84 '9 $msg_floppy' '$msg_install_from_a_floppy_disk_set'
85 'A $msg_usb' '$msg_install_from_a_usb_drive'
86 'X $msg_options' '$msg_view_set_various_media_options'
87 " # END-QUOTE
72 '1 $msg_cd_dvd' '$msg_install_from_a_freebsd_cd_dvd'
73 '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'
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
85 local hline="$hline_choose_help_for_more_information_on_media_types"
88
89 local height width rows
90 eval f_dialog_menu_size height width rows \
91 \"\$title\" \
92 \"\$btitle\" \
93 \"\$prompt\" \
94 \"\$hline\" \
95 $menu_list

--- 56 unchanged lines hidden ---
86
87 local height width rows
88 eval f_dialog_menu_size height width rows \
89 \"\$title\" \
90 \"\$btitle\" \
91 \"\$prompt\" \
92 \"\$hline\" \
93 $menu_list

--- 56 unchanged lines hidden ---