options.subr (252077) | options.subr (252112) |
---|---|
1if [ ! "$_MEDIA_OPTIONS_SUBR" ]; then _MEDIA_OPTIONS_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_OPTIONS_SUBR" ]; then _MEDIA_OPTIONS_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/options.subr 252077 2013-06-21 23:13:55Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/options.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/options.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/media/any.subr --- 117 unchanged lines hidden (view full) --- 153 ' $msg_release_name' '$cp' 154 '$msg_which_release_to_attempt_to_load'" 155 156 if f_struct device_media; then 157 device_media get type cp 158 case "$cp" in 159 $DEVICE_TYPE_UFS|$DEVICE_TYPE_DISK) 160 cp="$msg_file_system" ;; | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." media/options.subr 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/media/any.subr --- 117 unchanged lines hidden (view full) --- 153 ' $msg_release_name' '$cp' 154 '$msg_which_release_to_attempt_to_load'" 155 156 if f_struct device_media; then 157 device_media get type cp 158 case "$cp" in 159 $DEVICE_TYPE_UFS|$DEVICE_TYPE_DISK) 160 cp="$msg_file_system" ;; |
161 $DEVICE_TYPE_DIRECTORY) cp="$msg_directory" ;; 162 $DEVICE_TYPE_FLOPPY) cp="$msg_floppy" ;; 163 $DEVICE_TYPE_FTP) cp="$msg_ftp" ;; 164 $DEVICE_TYPE_HTTP_PROXY) cp="$msg_http_proxy" ;; 165 $DEVICE_TYPE_CDROM) cp="$msg_cdrom" ;; 166 $DEVICE_TYPE_USB) cp="$msg_usb" ;; 167 $DEVICE_TYPE_DOS) cp="$msg_dos" ;; 168 $DEVICE_TYPE_NFS) cp="$msg_nfs" ;; | 161 $DEVICE_TYPE_DIRECTORY) cp="$msg_directory" ;; 162 $DEVICE_TYPE_FLOPPY) cp="$msg_floppy" ;; 163 $DEVICE_TYPE_FTP) cp="$msg_ftp" ;; 164 $DEVICE_TYPE_HTTP_PROXY) cp="$msg_http_proxy" ;; 165 $DEVICE_TYPE_HTTP) cp="$msg_http_direct" ;; 166 $DEVICE_TYPE_CDROM) cp="$msg_cdrom" ;; 167 $DEVICE_TYPE_USB) cp="$msg_usb" ;; 168 $DEVICE_TYPE_DOS) cp="$msg_dos" ;; 169 $DEVICE_TYPE_NFS) cp="$msg_nfs" ;; |
169 *) 170 cp="<$msg_unknown>" 171 esac 172 else 173 cp="<$msg_not_yet_set>" 174 fi 175 menu_list="$menu_list 176 ' $msg_media_type' '$cp' --- 151 unchanged lines hidden --- | 170 *) 171 cp="<$msg_unknown>" 172 esac 173 else 174 cp="<$msg_not_yet_set>" 175 fi 176 menu_list="$menu_list 177 ' $msg_media_type' '$cp' --- 151 unchanged lines hidden --- |