Deleted Added
full compact
floppy.subr (252721) floppy.subr (252795)
1if [ ! "$_MEDIA_FLOPPY_SUBR" ]; then _MEDIA_FLOPPY_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_FLOPPY_SUBR" ]; then _MEDIA_FLOPPY_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/floppy.subr 252721 2013-07-04 20:12:12Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/floppy.subr 252795 2013-07-05 16:00:01Z dteske $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." media/floppy.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

55{
56 f_media_close
57
58 local devs ndevs
59 f_device_find "" $DEVICE_TYPE_FLOPPY devs
60 ndevs=$( set -- $devs; echo $# )
61
62 if [ ${ndevs:=0} -eq 0 ]; then
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_dprintf "%s: loading includes..." media/floppy.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

55{
56 f_media_close
57
58 local devs ndevs
59 f_device_find "" $DEVICE_TYPE_FLOPPY devs
60 ndevs=$( set -- $devs; echo $# )
61
62 if [ ${ndevs:=0} -eq 0 ]; then
63 f_interactive && f_dialog_msgbox "$msg_no_floppy_devices_found"
63 f_interactive && f_show_msg "$msg_no_floppy_devices_found"
64 return $FAILURE
65 elif [ $ndevs -gt 1 ]; then
66 local title="$msg_choose_a_floppy_drive"
67 local prompt="$msg_please_select_a_floppy_drive"
68 local hline=""
69
70 local dev retval
71 dev=$( f_device_menu \

--- 145 unchanged lines hidden ---
64 return $FAILURE
65 elif [ $ndevs -gt 1 ]; then
66 local title="$msg_choose_a_floppy_drive"
67 local prompt="$msg_please_select_a_floppy_drive"
68 local hline=""
69
70 local dev retval
71 dev=$( f_device_menu \

--- 145 unchanged lines hidden ---