ftp.subr (249754) | ftp.subr (251190) |
---|---|
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 (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_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 (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/ftp.subr 249754 2013-04-22 06:12:22Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 251190 2013-05-31 19:07:17Z 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/struct.subr 35f_include $BSDCFG_SHARE/device.subr --- 188 unchanged lines hidden (view full) --- 224 ' $msg_usa #10' 'ftp10.us.freebsd.org' 225 ' $msg_usa #11' 'ftp11.us.freebsd.org' 226 ' $msg_usa #12' 'ftp12.us.freebsd.org' 227 ' $msg_usa #13' 'ftp13.us.freebsd.org' 228 ' $msg_usa #14' 'ftp14.us.freebsd.org' 229 ' $msg_usa #15' 'ftp15.us.freebsd.org' 230 " # END-QUOTE 231 | 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/struct.subr 35f_include $BSDCFG_SHARE/device.subr --- 188 unchanged lines hidden (view full) --- 224 ' $msg_usa #10' 'ftp10.us.freebsd.org' 225 ' $msg_usa #11' 'ftp11.us.freebsd.org' 226 ' $msg_usa #12' 'ftp12.us.freebsd.org' 227 ' $msg_usa #13' 'ftp13.us.freebsd.org' 228 ' $msg_usa #14' 'ftp14.us.freebsd.org' 229 ' $msg_usa #15' 'ftp15.us.freebsd.org' 230 " # END-QUOTE 231 |
232 local size 233 size=$( eval f_dialog_menu_size \ 234 \"\$title\" \ 235 \"\$btitle\" \ 236 \"\$prompt\" \ 237 \"\$hline\" \ 238 $menu_list ) | 232 local height width rows 233 eval f_dialog_menu_size height width rows \ 234 \"\$title\" \ 235 \"\$btitle\" \ 236 \"\$prompt\" \ 237 \"\$hline\" \ 238 $menu_list |
239 240 local dialog_menu retval mtag value 241 dialog_menu=$( eval $DIALOG \ 242 --title \"\$title\" \ 243 --backtitle \"\$btitle\" \ 244 --hline \"\$hline\" \ 245 --ok-label \"\$msg_ok\" \ 246 --cancel-label \"\$msg_cancel\" \ | 239 240 local dialog_menu retval mtag value 241 dialog_menu=$( eval $DIALOG \ 242 --title \"\$title\" \ 243 --backtitle \"\$btitle\" \ 244 --hline \"\$hline\" \ 245 --ok-label \"\$msg_ok\" \ 246 --cancel-label \"\$msg_cancel\" \ |
247 --menu \"\$prompt\" $size \ | 247 --menu \"\$prompt\" \ 248 $height $width $rows \ |
248 $menu_list \ 249 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 250 ) 251 retval=$? 252 setvar DIALOG_MENU_$$ "$dialog_menu" 253 mtag=$( f_dialog_menutag ) 254 255 [ $retval -eq 0 ] || return $FAILURE --- 638 unchanged lines hidden --- | 249 $menu_list \ 250 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 251 ) 252 retval=$? 253 setvar DIALOG_MENU_$$ "$dialog_menu" 254 mtag=$( f_dialog_menutag ) 255 256 [ $retval -eq 0 ] || return $FAILURE --- 638 unchanged lines hidden --- |