Deleted Added
full compact
dos.subr (252721) dos.subr (252795)
1if [ ! "$_MEDIA_DOS_SUBR" ]; then _MEDIA_DOS_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_DOS_SUBR" ]; then _MEDIA_DOS_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/dos.subr 252721 2013-07-04 20:12:12Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/share/media/dos.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/dos.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

54{
55 f_media_close
56
57 local devs ndevs
58 f_device_find "" $DEVICE_TYPE_DOS devs
59 ndevs=$( set -- $devs; echo $# )
60
61 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/dos.subr
34f_include $BSDCFG_SHARE/device.subr
35f_include $BSDCFG_SHARE/dialog.subr

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

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

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

--- 94 unchanged lines hidden ---