Remove unnecessary duplicate initialization of the dialog(1) API (automatically
bootstrapped on-include unless DIALOG_SELF_INITIALIZE is set to NO before-hand)
This commit is contained in:
parent
b8d52352a7
commit
12f110aa1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244674
@ -225,7 +225,6 @@ shift $(( $OPTIND -1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_main_menu"
|
||||
|
||||
[ "$SECURE" ] && f_mustberoot_init
|
||||
|
@ -102,7 +102,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_configuration"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -110,7 +110,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_font"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -150,7 +150,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_keymap"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -100,7 +100,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_keyboard_repeat_rate"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -110,7 +110,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_screen_saver"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -102,7 +102,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_screenmap"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -172,7 +172,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_console_terminal_type"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -65,7 +65,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_mustberoot_init
|
||||
|
||||
#
|
||||
|
@ -65,7 +65,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_mustberoot_init
|
||||
|
||||
#
|
||||
|
@ -65,7 +65,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_mouse_disable"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -65,7 +65,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_mouse_enable"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -65,7 +65,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_mouse_flags"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -101,7 +101,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_please_configure_your_mouse"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -102,7 +102,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_select_your_mouse_port_from_the_following_menu"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -106,7 +106,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_select_a_protocol_type_for_your_mouse"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -58,7 +58,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_default_router"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -62,7 +62,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_networking_devices"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -58,7 +58,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_hostname_domain"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -58,7 +58,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_dns_nameservers"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -98,7 +98,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_network_management"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -64,7 +64,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_root_password"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -105,7 +105,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_securelevels_menu_title"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -120,7 +120,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_system_security_options_menu"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -285,7 +285,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_miscellaneous_startup_services"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -106,7 +106,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_add_startup_directive"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -205,7 +205,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_view_edit_startup_configuration"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -280,7 +280,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_delete_startup_directives"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -58,7 +58,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
||||
|
@ -167,7 +167,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_toggle_startup_services"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -99,7 +99,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_startup"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -131,7 +131,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_time_zone"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -76,7 +76,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_configure_ttys"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -56,7 +56,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Chain-load to groupinput to centralize code and minimize duplication
|
||||
#
|
||||
f_dialog_init
|
||||
$BSDCFG_LIBE/$APP_DIR/groupinput ${USE_XDIALOG:+-X} mode="Add"
|
||||
|
||||
################################################################################
|
||||
|
@ -59,7 +59,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_delete $msg_group"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -59,7 +59,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_edit_view $msg_group"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -148,7 +148,6 @@ f_dprintf "mode=[%s] group=[%s]" "$mode" "$group"
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
dialog_title_update "$mode"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -56,7 +56,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Chain-load to userinput to centralize code and minimize duplication
|
||||
#
|
||||
f_dialog_init
|
||||
$BSDCFG_LIBE/$APP_DIR/userinput ${USE_XDIALOG:+-X} mode="Add"
|
||||
|
||||
################################################################################
|
||||
|
@ -59,7 +59,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_delete $msg_login"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -59,7 +59,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_edit_view $msg_login"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -229,7 +229,6 @@ f_dprintf "mode=[%s] user=[%s]" "$mode" "$user"
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
dialog_title_update "$mode"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
@ -114,7 +114,6 @@ shift $(( $OPTIND - 1 ))
|
||||
#
|
||||
# Initialize
|
||||
#
|
||||
f_dialog_init
|
||||
f_dialog_title "$msg_login_management"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
Loading…
Reference in New Issue
Block a user