ftp.subr (253333) | ftp.subr (253545) |
---|---|
1if [ ! "$_MEDIA_FTP_SUBR" ]; then _MEDIA_FTP_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 (INCLUDING, 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_FTP_SUBR" ]; then _MEDIA_FTP_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 (INCLUDING, 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/ftp.subr 253333 2013-07-14 03:08:52Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 253545 2013-07-22 13:56:35Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/ftp.subr 34f_include $BSDCFG_SHARE/device.subr 35f_include $BSDCFG_SHARE/dialog.subr --- 34 unchanged lines hidden (view full) --- 70{ 71 f_dialog_title "$msg_please_select_a_freebsd_ftp_distribution_site" 72 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 73 f_dialog_title_restore 74 local prompt="$msg_please_select_the_site_closest_to_you_or_other" 75 local menu_list=" 76 '$msg_main_site' 'ftp.freebsd.org' 77 'URL' '$msg_specify_some_other_ftp_site' | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/ftp.subr 34f_include $BSDCFG_SHARE/device.subr 35f_include $BSDCFG_SHARE/dialog.subr --- 34 unchanged lines hidden (view full) --- 70{ 71 f_dialog_title "$msg_please_select_a_freebsd_ftp_distribution_site" 72 local title="$DIALOG_TITLE" btitle="$DIALOG_BACKTITLE" 73 f_dialog_title_restore 74 local prompt="$msg_please_select_the_site_closest_to_you_or_other" 75 local menu_list=" 76 '$msg_main_site' 'ftp.freebsd.org' 77 'URL' '$msg_specify_some_other_ftp_site' |
78 '$msg_snapshots_server_japan' 79 'snapshots.jp.freebsd.org' 80 '$msg_snapshots_server_sweden' 81 'snapshots.se.freebsd.org' | |
82 'IPv6 $msg_main_site' 'ftp.freebsd.org' | 78 'IPv6 $msg_main_site' 'ftp.freebsd.org' |
79 ' IPv6 $msg_france' 'ftp4.fr.freebsd.org' 80 ' IPv6 $msg_france #8' 'ftp8.fr.freebsd.org' |
|
83 ' IPv6 $msg_ireland' 'ftp3.ie.freebsd.org' | 81 ' IPv6 $msg_ireland' 'ftp3.ie.freebsd.org' |
84 ' IPv6 $msg_israel' 'ftp.il.freebsd.org' | |
85 ' IPv6 $msg_japan' 'ftp2.jp.freebsd.org' | 82 ' IPv6 $msg_japan' 'ftp2.jp.freebsd.org' |
83 ' IPv6 $msg_sweden' 'ftp4.se.freebsd.org' |
|
86 ' IPv6 $msg_usa' 'ftp4.us.freebsd.org' 87 ' IPv6 $msg_turkey' 'ftp2.tr.freebsd.org' 88 '$msg_primary' 'ftp1.freebsd.org' 89 ' $msg_primary #2' 'ftp2.freebsd.org' 90 ' $msg_primary #3' 'ftp3.freebsd.org' 91 ' $msg_primary #4' 'ftp4.freebsd.org' 92 ' $msg_primary #5' 'ftp5.freebsd.org' 93 ' $msg_primary #6' 'ftp6.freebsd.org' 94 ' $msg_primary #7' 'ftp7.freebsd.org' | 84 ' IPv6 $msg_usa' 'ftp4.us.freebsd.org' 85 ' IPv6 $msg_turkey' 'ftp2.tr.freebsd.org' 86 '$msg_primary' 'ftp1.freebsd.org' 87 ' $msg_primary #2' 'ftp2.freebsd.org' 88 ' $msg_primary #3' 'ftp3.freebsd.org' 89 ' $msg_primary #4' 'ftp4.freebsd.org' 90 ' $msg_primary #5' 'ftp5.freebsd.org' 91 ' $msg_primary #6' 'ftp6.freebsd.org' 92 ' $msg_primary #7' 'ftp7.freebsd.org' |
95 ' $msg_primary #8' 'ftp8.freebsd.org' 96 ' $msg_primary #9' 'ftp9.freebsd.org' | |
97 ' $msg_primary #10' 'ftp10.freebsd.org' 98 ' $msg_primary #11' 'ftp11.freebsd.org' 99 ' $msg_primary #12' 'ftp12.freebsd.org' 100 ' $msg_primary #13' 'ftp13.freebsd.org' 101 ' $msg_primary #14' 'ftp14.freebsd.org' | 93 ' $msg_primary #10' 'ftp10.freebsd.org' 94 ' $msg_primary #11' 'ftp11.freebsd.org' 95 ' $msg_primary #12' 'ftp12.freebsd.org' 96 ' $msg_primary #13' 'ftp13.freebsd.org' 97 ' $msg_primary #14' 'ftp14.freebsd.org' |
102 '$msg_argentina' 'ftp.ar.freebsd.org' | 98 '$msg_armenia' 'ftp1.am.freebsd.org' |
103 '$msg_australia' 'ftp.au.freebsd.org' 104 ' $msg_australia #2' 'ftp2.au.freebsd.org' 105 ' $msg_australia #3' 'ftp3.au.freebsd.org' 106 '$msg_austria' 'ftp.at.freebsd.org' | 99 '$msg_australia' 'ftp.au.freebsd.org' 100 ' $msg_australia #2' 'ftp2.au.freebsd.org' 101 ' $msg_australia #3' 'ftp3.au.freebsd.org' 102 '$msg_austria' 'ftp.at.freebsd.org' |
107 ' $msg_austria #2' 'ftp2.at.freebsd.org' 108 '$msg_brazil' 'ftp.br.freebsd.org' 109 ' $msg_brazil #2' 'ftp2.br.freebsd.org' | 103 '$msg_brazil' 'ftp2.br.freebsd.org' |
110 ' $msg_brazil #3' 'ftp3.br.freebsd.org' 111 ' $msg_brazil #4' 'ftp4.br.freebsd.org' | 104 ' $msg_brazil #3' 'ftp3.br.freebsd.org' 105 ' $msg_brazil #4' 'ftp4.br.freebsd.org' |
112 ' $msg_brazil #5' 'ftp5.br.freebsd.org' 113 ' $msg_brazil #6' 'ftp6.br.freebsd.org' 114 ' $msg_brazil #7' 'ftp7.br.freebsd.org' | |
115 '$msg_canada' 'ftp.ca.freebsd.org' 116 '$msg_china' 'ftp.cn.freebsd.org' | 106 '$msg_canada' 'ftp.ca.freebsd.org' 107 '$msg_china' 'ftp.cn.freebsd.org' |
117 ' $msg_china #2' 'ftp2.cn.freebsd.org' 118 '$msg_croatia' 'ftp.hr.freebsd.org' | |
119 '$msg_czech_republic' 'ftp.cz.freebsd.org' 120 '$msg_denmark' 'ftp.dk.freebsd.org' | 108 '$msg_czech_republic' 'ftp.cz.freebsd.org' 109 '$msg_denmark' 'ftp.dk.freebsd.org' |
121 ' $msg_denmark #2' 'ftp2.dk.freebsd.org' | |
122 '$msg_estonia' 'ftp.ee.freebsd.org' 123 '$msg_finland' 'ftp.fi.freebsd.org' 124 '$msg_france' 'ftp.fr.freebsd.org' | 110 '$msg_estonia' 'ftp.ee.freebsd.org' 111 '$msg_finland' 'ftp.fi.freebsd.org' 112 '$msg_france' 'ftp.fr.freebsd.org' |
125 ' $msg_france #2' 'ftp2.fr.freebsd.org' | |
126 ' $msg_france #3' 'ftp3.fr.freebsd.org' | 113 ' $msg_france #3' 'ftp3.fr.freebsd.org' |
114 ' $msg_france #4' 'ftp4.fr.freebsd.org' |
|
127 ' $msg_france #5' 'ftp5.fr.freebsd.org' 128 ' $msg_france #6' 'ftp6.fr.freebsd.org' | 115 ' $msg_france #5' 'ftp5.fr.freebsd.org' 116 ' $msg_france #6' 'ftp6.fr.freebsd.org' |
117 ' $msg_france #7' 'ftp7.fr.freebsd.org' |
|
129 ' $msg_france #8' 'ftp8.fr.freebsd.org' 130 '$msg_germany' 'ftp.de.freebsd.org' 131 ' $msg_germany #2' 'ftp2.de.freebsd.org' | 118 ' $msg_france #8' 'ftp8.fr.freebsd.org' 119 '$msg_germany' 'ftp.de.freebsd.org' 120 ' $msg_germany #2' 'ftp2.de.freebsd.org' |
132 ' $msg_germany #3' 'ftp3.de.freebsd.org' | |
133 ' $msg_germany #4' 'ftp4.de.freebsd.org' 134 ' $msg_germany #5' 'ftp5.de.freebsd.org' 135 ' $msg_germany #6' 'ftp6.de.freebsd.org' 136 ' $msg_germany #7' 'ftp7.de.freebsd.org' 137 ' $msg_germany #8' 'ftp8.de.freebsd.org' 138 '$msg_greece' 'ftp.gr.freebsd.org' 139 ' $msg_greece #2' 'ftp2.gr.freebsd.org' | 121 ' $msg_germany #4' 'ftp4.de.freebsd.org' 122 ' $msg_germany #5' 'ftp5.de.freebsd.org' 123 ' $msg_germany #6' 'ftp6.de.freebsd.org' 124 ' $msg_germany #7' 'ftp7.de.freebsd.org' 125 ' $msg_germany #8' 'ftp8.de.freebsd.org' 126 '$msg_greece' 'ftp.gr.freebsd.org' 127 ' $msg_greece #2' 'ftp2.gr.freebsd.org' |
140 '$msg_hungary' 'ftp.hu.freebsd.org' | |
141 '$msg_iceland' 'ftp.is.freebsd.org' | 128 '$msg_iceland' 'ftp.is.freebsd.org' |
142 '$msg_ireland' 'ftp.ie.freebsd.org' 143 ' $msg_ireland #2' 'ftp2.ie.freebsd.org' 144 ' $msg_ireland #3' 'ftp3.ie.freebsd.org' | 129 '$msg_ireland' 'ftp3.ie.freebsd.org' |
145 '$msg_israel' 'ftp.il.freebsd.org' 146 '$msg_italy' 'ftp.it.freebsd.org' 147 '$msg_japan' 'ftp.jp.freebsd.org' 148 ' $msg_japan #2' 'ftp2.jp.freebsd.org' 149 ' $msg_japan #3' 'ftp3.jp.freebsd.org' 150 ' $msg_japan #4' 'ftp4.jp.freebsd.org' 151 ' $msg_japan #5' 'ftp5.jp.freebsd.org' 152 ' $msg_japan #6' 'ftp6.jp.freebsd.org' 153 ' $msg_japan #7' 'ftp7.jp.freebsd.org' 154 ' $msg_japan #8' 'ftp8.jp.freebsd.org' 155 ' $msg_japan #9' 'ftp9.jp.freebsd.org' 156 '$msg_korea' 'ftp.kr.freebsd.org' 157 ' $msg_korea #2' 'ftp2.kr.freebsd.org' | 130 '$msg_israel' 'ftp.il.freebsd.org' 131 '$msg_italy' 'ftp.it.freebsd.org' 132 '$msg_japan' 'ftp.jp.freebsd.org' 133 ' $msg_japan #2' 'ftp2.jp.freebsd.org' 134 ' $msg_japan #3' 'ftp3.jp.freebsd.org' 135 ' $msg_japan #4' 'ftp4.jp.freebsd.org' 136 ' $msg_japan #5' 'ftp5.jp.freebsd.org' 137 ' $msg_japan #6' 'ftp6.jp.freebsd.org' 138 ' $msg_japan #7' 'ftp7.jp.freebsd.org' 139 ' $msg_japan #8' 'ftp8.jp.freebsd.org' 140 ' $msg_japan #9' 'ftp9.jp.freebsd.org' 141 '$msg_korea' 'ftp.kr.freebsd.org' 142 ' $msg_korea #2' 'ftp2.kr.freebsd.org' |
143 '$msg_latvia' 'ftp.lv.freebsd.org' |
|
158 '$msg_lithuania' 'ftp.lt.freebsd.org' 159 '$msg_netherlands' 'ftp.nl.freebsd.org' 160 ' $msg_netherlands #2' 'ftp2.nl.freebsd.org' | 144 '$msg_lithuania' 'ftp.lt.freebsd.org' 145 '$msg_netherlands' 'ftp.nl.freebsd.org' 146 ' $msg_netherlands #2' 'ftp2.nl.freebsd.org' |
147 '$msg_new_zealand' 'ftp.nz.freebsd.org' |
|
161 '$msg_norway' 'ftp.no.freebsd.org' | 148 '$msg_norway' 'ftp.no.freebsd.org' |
162 ' $msg_norway #3' 'ftp3.no.freebsd.org' | |
163 '$msg_poland' 'ftp.pl.freebsd.org' 164 ' $msg_poland #2' 'ftp2.pl.freebsd.org' | 149 '$msg_poland' 'ftp.pl.freebsd.org' 150 ' $msg_poland #2' 'ftp2.pl.freebsd.org' |
165 ' $msg_poland #5' 'ftp5.pl.freebsd.org' 166 '$msg_portugal' 'ftp.pt.freebsd.org' 167 ' $msg_portugal #2' 'ftp2.pt.freebsd.org' 168 ' $msg_portugal #4' 'ftp4.pt.freebsd.org' 169 '$msg_romania' 'ftp.ro.freebsd.org' | |
170 '$msg_russia' 'ftp.ru.freebsd.org' 171 ' $msg_russia #2' 'ftp2.ru.freebsd.org' | 151 '$msg_russia' 'ftp.ru.freebsd.org' 152 ' $msg_russia #2' 'ftp2.ru.freebsd.org' |
172 ' $msg_russia #3' 'ftp3.ru.freebsd.org' | |
173 ' $msg_russia #4' 'ftp4.ru.freebsd.org' | 153 ' $msg_russia #4' 'ftp4.ru.freebsd.org' |
174 '$msg_singapore' 'ftp.sg.freebsd.org' | 154 ' $msg_russia #5' 'ftp5.ru.freebsd.org' 155 ' $msg_russia #6' 'ftp6.ru.freebsd.org' |
175 '$msg_slovak_republic' 'ftp.sk.freebsd.org' | 156 '$msg_slovak_republic' 'ftp.sk.freebsd.org' |
157 ' $msg_slovak_republic #2' 'ftp2.sk.freebsd.org' |
|
176 '$msg_slovenia' 'ftp.si.freebsd.org' | 158 '$msg_slovenia' 'ftp.si.freebsd.org' |
177 ' $msg_slovenia #2' 'ftp2.si.freebsd.org' | |
178 '$msg_south_africa' 'ftp.za.freebsd.org' 179 ' $msg_south_africa #2' 'ftp2.za.freebsd.org' | 159 '$msg_south_africa' 'ftp.za.freebsd.org' 160 ' $msg_south_africa #2' 'ftp2.za.freebsd.org' |
180 ' $msg_south_africa #3' 'ftp3.za.freebsd.org' | |
181 ' $msg_south_africa #4' 'ftp4.za.freebsd.org' 182 '$msg_spain' 'ftp.es.freebsd.org' | 161 ' $msg_south_africa #4' 'ftp4.za.freebsd.org' 162 '$msg_spain' 'ftp.es.freebsd.org' |
183 ' $msg_spain #2' 'ftp2.es.freebsd.org' | |
184 ' $msg_spain #3' 'ftp3.es.freebsd.org' 185 '$msg_sweden' 'ftp.se.freebsd.org' 186 ' $msg_sweden #2' 'ftp2.se.freebsd.org' 187 ' $msg_sweden #3' 'ftp3.se.freebsd.org' 188 ' $msg_sweden #4' 'ftp4.se.freebsd.org' 189 ' $msg_sweden #5' 'ftp5.se.freebsd.org' | 163 ' $msg_spain #3' 'ftp3.es.freebsd.org' 164 '$msg_sweden' 'ftp.se.freebsd.org' 165 ' $msg_sweden #2' 'ftp2.se.freebsd.org' 166 ' $msg_sweden #3' 'ftp3.se.freebsd.org' 167 ' $msg_sweden #4' 'ftp4.se.freebsd.org' 168 ' $msg_sweden #5' 'ftp5.se.freebsd.org' |
169 ' $msg_sweden #6' 'ftp6.se.freebsd.org' |
|
190 '$msg_switzerland' 'ftp.ch.freebsd.org' | 170 '$msg_switzerland' 'ftp.ch.freebsd.org' |
191 ' $msg_switzerland #2' 'ftp2.ch.freebsd.org' | |
192 '$msg_taiwan' 'ftp.tw.freebsd.org' 193 ' $msg_taiwan #2' 'ftp2.tw.freebsd.org' 194 ' $msg_taiwan #3' 'ftp3.tw.freebsd.org' 195 ' $msg_taiwan #4' 'ftp4.tw.freebsd.org' 196 ' $msg_taiwan #6' 'ftp6.tw.freebsd.org' 197 ' $msg_taiwan #11' 'ftp11.tw.freebsd.org' | 171 '$msg_taiwan' 'ftp.tw.freebsd.org' 172 ' $msg_taiwan #2' 'ftp2.tw.freebsd.org' 173 ' $msg_taiwan #3' 'ftp3.tw.freebsd.org' 174 ' $msg_taiwan #4' 'ftp4.tw.freebsd.org' 175 ' $msg_taiwan #6' 'ftp6.tw.freebsd.org' 176 ' $msg_taiwan #11' 'ftp11.tw.freebsd.org' |
198 '$msg_turkey' 'ftp.tr.freebsd.org' 199 ' $msg_turkey #2' 'ftp2.tr.freebsd.org' | 177 '$msg_turkey' 'ftp2.tr.freebsd.org' |
200 '$msg_uk' 'ftp.uk.freebsd.org' 201 ' $msg_uk #2' 'ftp2.uk.freebsd.org' 202 ' $msg_uk #3' 'ftp3.uk.freebsd.org' 203 ' $msg_uk #4' 'ftp4.uk.freebsd.org' 204 ' $msg_uk #5' 'ftp5.uk.freebsd.org' | 178 '$msg_uk' 'ftp.uk.freebsd.org' 179 ' $msg_uk #2' 'ftp2.uk.freebsd.org' 180 ' $msg_uk #3' 'ftp3.uk.freebsd.org' 181 ' $msg_uk #4' 'ftp4.uk.freebsd.org' 182 ' $msg_uk #5' 'ftp5.uk.freebsd.org' |
205 ' $msg_uk #6' 'ftp6.uk.freebsd.org' | |
206 '$msg_ukraine' 'ftp.ua.freebsd.org' | 183 '$msg_ukraine' 'ftp.ua.freebsd.org' |
207 ' $msg_ukraine #2' 'ftp2.ua.freebsd.org' 208 ' $msg_ukraine #5' 'ftp5.ua.freebsd.org' 209 ' $msg_ukraine #6' 'ftp6.ua.freebsd.org' | |
210 ' $msg_ukraine #7' 'ftp7.ua.freebsd.org' | 184 ' $msg_ukraine #7' 'ftp7.ua.freebsd.org' |
211 ' $msg_ukraine #8' 'ftp8.ua.freebsd.org' | |
212 '$msg_usa #1' 'ftp1.us.freebsd.org' 213 ' $msg_usa #2' 'ftp2.us.freebsd.org' 214 ' $msg_usa #3' 'ftp3.us.freebsd.org' 215 ' $msg_usa #4' 'ftp4.us.freebsd.org' 216 ' $msg_usa #5' 'ftp5.us.freebsd.org' 217 ' $msg_usa #6' 'ftp6.us.freebsd.org' | 185 '$msg_usa #1' 'ftp1.us.freebsd.org' 186 ' $msg_usa #2' 'ftp2.us.freebsd.org' 187 ' $msg_usa #3' 'ftp3.us.freebsd.org' 188 ' $msg_usa #4' 'ftp4.us.freebsd.org' 189 ' $msg_usa #5' 'ftp5.us.freebsd.org' 190 ' $msg_usa #6' 'ftp6.us.freebsd.org' |
218 ' $msg_usa #7' 'ftp7.us.freebsd.org' | |
219 ' $msg_usa #8' 'ftp8.us.freebsd.org' | 191 ' $msg_usa #8' 'ftp8.us.freebsd.org' |
220 ' $msg_usa #9' 'ftp9.us.freebsd.org' | |
221 ' $msg_usa #10' 'ftp10.us.freebsd.org' 222 ' $msg_usa #11' 'ftp11.us.freebsd.org' | 192 ' $msg_usa #10' 'ftp10.us.freebsd.org' 193 ' $msg_usa #11' 'ftp11.us.freebsd.org' |
223 ' $msg_usa #12' 'ftp12.us.freebsd.org' | |
224 ' $msg_usa #13' 'ftp13.us.freebsd.org' 225 ' $msg_usa #14' 'ftp14.us.freebsd.org' 226 ' $msg_usa #15' 'ftp15.us.freebsd.org' 227 " # END-QUOTE 228 local hline="$msg_select_a_site_thats_close" 229 230 local height width rows 231 eval f_dialog_menu_size height width rows \ --- 710 unchanged lines hidden --- | 194 ' $msg_usa #13' 'ftp13.us.freebsd.org' 195 ' $msg_usa #14' 'ftp14.us.freebsd.org' 196 ' $msg_usa #15' 'ftp15.us.freebsd.org' 197 " # END-QUOTE 198 local hline="$msg_select_a_site_thats_close" 199 200 local height width rows 201 eval f_dialog_menu_size height width rows \ --- 710 unchanged lines hidden --- |