Deleted Added
full compact
type (240684) type (240768)
1#!/bin/sh
2#-
3# Copyright (c) 2012 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#
1#!/bin/sh
2#-
3# Copyright (c) 2012 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/mouse/type 240684 2012-09-18 22:28:42Z dteske $
27# $FreeBSD: head/usr.sbin/bsdconfig/mouse/type 240768 2012-09-20 23:44:13Z dteske $
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_include $BSDCFG_SHARE/dialog.subr
34f_include $BSDCFG_SHARE/mustberoot.subr
35f_include $BSDCFG_SHARE/sysrc.subr

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

67
68 size=$( eval f_dialog_menu_size \
69 \"\$DIALOG_TITLE\" \
70 \"\$DIALOG_BACKTITLE\" \
71 \"\$prompt\" \
72 \"\$hline\" \
73 $menu_list )
74
28#
29############################################################ INCLUDES
30
31BSDCFG_SHARE="/usr/share/bsdconfig"
32. $BSDCFG_SHARE/common.subr || exit 1
33f_include $BSDCFG_SHARE/dialog.subr
34f_include $BSDCFG_SHARE/mustberoot.subr
35f_include $BSDCFG_SHARE/sysrc.subr

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

67
68 size=$( eval f_dialog_menu_size \
69 \"\$DIALOG_TITLE\" \
70 \"\$DIALOG_BACKTITLE\" \
71 \"\$prompt\" \
72 \"\$hline\" \
73 $menu_list )
74
75 eval $DIALOG \
75 local dialog_menu
76 dialog_menu=$( eval $DIALOG \
76 --clear --title \"\$DIALOG_TITLE\" \
77 --backtitle \"\$DIALOG_BACKTITLE\" \
78 --hline \"\$hline\" \
79 --ok-label \"\$msg_ok\" \
80 --cancel-label \"\$msg_cancel\" \
81 --menu \"\$prompt\" $size \
82 $menu_list \
77 --clear --title \"\$DIALOG_TITLE\" \
78 --backtitle \"\$DIALOG_BACKTITLE\" \
79 --hline \"\$hline\" \
80 --ok-label \"\$msg_ok\" \
81 --cancel-label \"\$msg_cancel\" \
82 --menu \"\$prompt\" $size \
83 $menu_list \
83 2> "$DIALOG_TMPDIR/dialog.menu.$$"
84 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
85 )
86 local retval=$?
87 setvar DIALOG_MENU_$$ "$dialog_menu"
88 return $retval
84}
85
86############################################################ MAIN
87
88# Incorporate rc-file if it exists
89[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"
90
91#

--- 67 unchanged lines hidden ---
89}
90
91############################################################ MAIN
92
93# Incorporate rc-file if it exists
94[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"
95
96#

--- 67 unchanged lines hidden ---