rcconf.subr (251266) | rcconf.subr (251389) |
---|---|
1if [ ! "$_STARTUP_RCCONF_SUBR" ]; then _STARTUP_RCCONF_SUBR=1 2# 3# Copyright (c) 2006-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 [ ! "$_STARTUP_RCCONF_SUBR" ]; then _STARTUP_RCCONF_SUBR=1 2# 3# Copyright (c) 2006-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/startup/share/rcconf.subr 251266 2013-06-02 22:34:40Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/startup/share/rcconf.subr 251389 2013-06-04 16:48:23Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." startup/rcconf.subr 34f_include $BSDCFG_SHARE/sysrc.subr 35 --- 331 unchanged lines hidden (view full) --- 367# function should be treated like a call to dialog(1) (the exit status should 368# be captured and f_dialog_menutag_fetch() should be used to get the user's 369# response). 370# 371f_dialog_input_rclist() 372{ 373 local prompt="$msg_please_select_an_rcconf_directive" 374 local menu_list=" | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." startup/rcconf.subr 34f_include $BSDCFG_SHARE/sysrc.subr 35 --- 331 unchanged lines hidden (view full) --- 367# function should be treated like a call to dialog(1) (the exit status should 368# be captured and f_dialog_menutag_fetch() should be used to get the user's 369# response). 370# 371f_dialog_input_rclist() 372{ 373 local prompt="$msg_please_select_an_rcconf_directive" 374 local menu_list=" |
375 'X $msg_exit' '' ${SHOW_DESC:+'$msg_exit_help'} | 375 'X $msg_exit' '' ${SHOW_DESC:+'$msg_exit_this_menu'} |
376 " # END-QUOTE 377 local hline="$hline_arrows_tab_enter" 378 379 if [ ! "$_RCCONF_MAP" ]; then 380 # Generate RCCONF_MAP of `var desc ...' per-line 381 f_dialog_info "$msg_creating_rcconf_map" 382 RCCONF_MAP=$( f_startup_rcconf_map ) 383 export RCCONF_MAP --- 106 unchanged lines hidden --- | 376 " # END-QUOTE 377 local hline="$hline_arrows_tab_enter" 378 379 if [ ! "$_RCCONF_MAP" ]; then 380 # Generate RCCONF_MAP of `var desc ...' per-line 381 f_dialog_info "$msg_creating_rcconf_map" 382 RCCONF_MAP=$( f_startup_rcconf_map ) 383 export RCCONF_MAP --- 106 unchanged lines hidden --- |