Whitespace and comments.

This commit is contained in:
Devin Teske 2013-06-19 18:13:58 +00:00
parent 3daac03bb7
commit f4a3220ca1
6 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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 "$@"
################################################################################

View File

@ -530,7 +530,6 @@ while :; do
esac
;;
esac
done
exit $SUCCESS