Whitespace and comments.
This commit is contained in:
parent
3daac03bb7
commit
f4a3220ca1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252000
@ -180,8 +180,7 @@ dialog_menu_main()
|
||||
|
||||
case "$menu_program" in
|
||||
/*) : already fully qualified ;;
|
||||
*)
|
||||
menu_program="$menuitem/$menu_program"
|
||||
*) menu_program="$menuitem/$menu_program"
|
||||
esac
|
||||
|
||||
f_shell_escape "$menu_title" menu_title
|
||||
|
@ -69,6 +69,9 @@ f_dialog_title "$msg_root_password"
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
||||
#
|
||||
# Prompt the user to input a new password (and change it if they don't cancel)
|
||||
#
|
||||
if f_dialog_input_password; then
|
||||
err=$( echo "$pw_password" | pw usermod $USER_ROOT -h 0 2>&1 ) ||
|
||||
f_die $? "%s" "$err"
|
||||
|
@ -162,9 +162,9 @@ while :; do
|
||||
"2 ["?"] $msg_securelevel") # Configure securelevels for the system
|
||||
$BSDCFG_LIBE/$APP_DIR/kern_securelevel ${USE_XDIALOG:+-X} ;;
|
||||
"3 [X] $msg_nfs_port") # Require that NFS clients use reserved ports
|
||||
f_sysrc_set nfs_reserved_port_only "NO";;
|
||||
f_sysrc_set nfs_reserved_port_only "NO" ;;
|
||||
"3 [ ] $msg_nfs_port") # Same; Toggle value
|
||||
f_sysrc_set nfs_reserved_port_only "YES";;
|
||||
f_sysrc_set nfs_reserved_port_only "YES" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -246,9 +246,7 @@ while :; do
|
||||
|
||||
case "$mtag" in
|
||||
"X $msg_exit") break ;;
|
||||
"> $msg_add_new")
|
||||
$BSDCFG_LIBE/$APP_DIR/rcadd ${USE_XDIALOG:+-X}
|
||||
;;
|
||||
"> $msg_add_new") $BSDCFG_LIBE/$APP_DIR/rcadd ${USE_XDIALOG:+-X} ;;
|
||||
"> $msg_delete")
|
||||
# rcdelete has a similar interface that can inherit the below:
|
||||
export SHOW_VALUE SHOW_DESC SHOW_DEFAULT_VALUE SHOW_CONFIGURED
|
||||
|
@ -62,6 +62,9 @@ shift $(( $OPTIND - 1 ))
|
||||
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
|
||||
f_mustberoot_init
|
||||
|
||||
#
|
||||
# Edit the rc.conf(5) variable(s) passed as argument(s)
|
||||
#
|
||||
f_dialog_rcedit "$@"
|
||||
|
||||
################################################################################
|
||||
|
@ -530,7 +530,6 @@ while :; do
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
|
||||
exit $SUCCESS
|
||||
|
Loading…
Reference in New Issue
Block a user