misc (251244) | misc (251264) |
---|---|
1#!/bin/sh 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# | 1#!/bin/sh 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/startup/misc 251244 2013-06-02 09:02:12Z dteske $ | 27# $FreeBSD: head/usr.sbin/bsdconfig/startup/misc 251264 2013-06-02 20:02:50Z dteske $ |
28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." "$0" 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/mustberoot.subr --- 15 unchanged lines hidden (view full) --- 51############################################################ FUNCTIONS 52 53# dialog_menu_main 54# 55# Display the dialog(1)-based application main menu. 56# 57dialog_menu_main() 58{ | 28# 29############################################################ INCLUDES 30 31BSDCFG_SHARE="/usr/share/bsdconfig" 32. $BSDCFG_SHARE/common.subr || exit 1 33f_dprintf "%s: loading includes..." "$0" 34f_include $BSDCFG_SHARE/dialog.subr 35f_include $BSDCFG_SHARE/mustberoot.subr --- 15 unchanged lines hidden (view full) --- 51############################################################ FUNCTIONS 52 53# dialog_menu_main 54# 55# Display the dialog(1)-based application main menu. 56# 57dialog_menu_main() 58{ |
59 local menu_list var_list defaultitem= 60 local hline="$hline_arrows_tab_enter" | |
61 local prompt="$msg_miscellaneous_menu_text" | 59 local prompt="$msg_miscellaneous_menu_text" |
62 63 # Obtain default-item (adjusted below for dynamic tags) 64 f_dialog_default_fetch defaultitem 65 local ditem="${defaultitem%%[$IFS]*}" 66 67 menu_list=" | 60 local menu_list=" |
68 'X <<< $msg_exit' '$msg_exit_this_menu' 69 " # END-QUOTE | 61 'X <<< $msg_exit' '$msg_exit_this_menu' 62 " # END-QUOTE |
63 local defaultitem= # Calculated below 64 local hline="$hline_arrows_tab_enter" |
|
70 | 65 |
71 var_list=" | 66 local var_list=" |
72 accounting_enable 73 local_startup 74 lpd_enable 75 named_enable 76 named_flags 77 nis_client_enable 78 nis_server_enable 79 nisdomainname 80 startup_dirs 81 " # END-QUOTE 82 83 if [ "$UNAME_P" = "i386" ]; then 84 var_list="$var_list 85 apm_enable 86 ibcs2_enable 87 svr4_enable 88 " # END-QUOTE 89 fi 90 | 67 accounting_enable 68 local_startup 69 lpd_enable 70 named_enable 71 named_flags 72 nis_client_enable 73 nis_server_enable 74 nisdomainname 75 startup_dirs 76 " # END-QUOTE 77 78 if [ "$UNAME_P" = "i386" ]; then 79 var_list="$var_list 80 apm_enable 81 ibcs2_enable 82 svr4_enable 83 " # END-QUOTE 84 fi 85 |
86 # Obtain default-item (adjusted below for dynamic tags) 87 f_dialog_default_fetch defaultitem 88 local ditem="${defaultitem%%[$IFS]*}" 89 |
|
91 eval "$( 92 . "$RC_DEFAULTS" 93 source_rc_confs 94 export $var_list 95 export msg_apm msg_apm_desc 96 export msg_startup_dirs msg_startup_dirs_desc 97 export msg_named msg_named_desc 98 export msg_named_flags msg_named_flags_desc --- 336 unchanged lines hidden --- | 90 eval "$( 91 . "$RC_DEFAULTS" 92 source_rc_confs 93 export $var_list 94 export msg_apm msg_apm_desc 95 export msg_startup_dirs msg_startup_dirs_desc 96 export msg_named msg_named_desc 97 export msg_named_flags msg_named_flags_desc --- 336 unchanged lines hidden --- |