head	1.19;
access;
symbols
	RELENG_9:1.19.0.2;
locks; strict;
comment	@# @;


1.19
date	2013.06.25.00.35.22;	author svnexp;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2013.06.19.00.56.37;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2013.06.03.00.43.28;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2013.06.03.00.32.49;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2013.06.02.00.37.30;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2013.06.01.00.35.21;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2013.05.15.00.26.05;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2013.04.23.00.30.01;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2013.04.23.00.27.07;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2013.01.15.00.26.09;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.12.25.11.03.38;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.12.25.09.37.00;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.12.21.19.30.51;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.11.17.04.41.48;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2012.11.17.01.54.40;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.10.26.03.20.04;	author dteske;	state Exp;
branches;
next	1.3;

1.3
date	2012.09.20.23.44.13;	author dteske;	state Exp;
branches;
next	1.2;

1.2
date	2012.09.18.22.28.42;	author dteske;	state Exp;
branches;
next	1.1;

1.1
date	2012.07.14.03.16.57;	author dteske;	state Exp;
branches;
next	;

1.19.2.1
date	2013.06.25.00.35.22;	author svnexp;	state dead;
branches;
next	1.19.2.2;

1.19.2.2
date	2013.07.07.20.03.18;	author svnexp;	state Exp;
branches;
next	1.19.2.3;

1.19.2.3
date	2014.03.27.04.02.36;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252178
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#!/bin/sh
#-
# Copyright (c) 2012 Ron McDowell
# Copyright (c) 2012-2013 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 252178 2013-06-24 20:58:54Z dteske $
#
############################################################ INCLUDES

BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." "$0"
f_include $BSDCFG_SHARE/dialog.subr
f_include $BSDCFG_SHARE/mustberoot.subr

BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="070.usermgmt"
f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr

USERMGMT_HELPFILE=$BSDCFG_LIBE/$APP_DIR/include/usermgmt.hlp

ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
[ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm"

############################################################ FUNCTIONS

# dialog_menu_main
#
# Display the dialog(1)-based application main menu.
#
dialog_menu_main()
{
	local prompt=
	local menu_list="
		'X' '$msg_exit'
		'1' '$msg_add_login'
		'2' '$msg_edit_login'
		'3' '$msg_delete_login'
		'-' '-'
		'4' '$msg_add_group'
		'5' '$msg_edit_group'
		'6' '$msg_delete_group'
	" # END-QUOTE
	local defaultitem= # Calculated below
	local hline="$hline_arrows_tab_enter"

	local height width rows
	eval f_dialog_menu_size height width rows \
	                        \"\$DIALOG_TITLE\"     \
	                        \"\$DIALOG_BACKTITLE\" \
	                        \"\$prompt\"           \
	                        \"\$hline\"            \
	                        $menu_list

	# When using Xdialog(1) we need to bump the width for the buttons
	[ "$USE_XDIALOG" ] && width=40

	# Obtain default-item from previously stored selection
	f_dialog_default_fetch defaultitem

	local menu_choice
	menu_choice=$( eval $DIALOG \
		--title \"\$DIALOG_TITLE\"  \
		--backtitle \"\$DIALOG_BACKTITLE\" \
		--hline \"\$hline\"                \
		--ok-label \"\$msg_ok\"            \
		--cancel-label \"\$msg_cancel\"    \
		--help-button                      \
		--help-label \"\$msg_help\"        \
		${USE_XDIALOG:+--help \"\"}        \
		--default-item \"\$defaultitem\"   \
		--menu \"\$prompt\"                \
		$height $width $rows               \
		$menu_list                         \
		2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
	)
	local retval=$?
	f_dialog_data_sanitize menu_choice
	f_dialog_menutag_store "$menu_choice"

	# Only update default-item on success
	[ $retval -eq 0 ] && f_dialog_default_store "$menu_choice"

	return $retval
}

############################################################ MAIN

# Incorporate rc-file if it exists
[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"

#
# Process command-line arguments
#
while getopts h$GETOPTS_STDARGS flag; do
	case "$flag" in
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;;
	esac
done
shift $(( $OPTIND - 1 ))

#
# Initialize
#
f_dialog_title "$msg_login_management"
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
f_mustberoot_init

#
# Launch application main menu
#
while :; do
	dialog_menu_main
	retval=$?
	f_dialog_menutag_fetch mtag
	f_dprintf "retval=%u mtag=[%s]" $retval "$mtag"

	if [ $retval -eq 2 ]; then
		# The Help button was pressed
		f_show_help "$USERMGMT_HELPFILE"
		continue
	elif [ $retval -ne $SUCCESS ]; then
		f_die
	fi

	command=
	case "$mtag" in
	X) break ;;
	1) command=useradd   ;; # Add User
	2) command=useredit  ;; # Edit/View User
	3) command=userdel   ;; # Delete User
	4) command=groupadd  ;; # Add Group
	5) command=groupedit ;; # Edit/View Group
	6) command=groupdel  ;; # Delete Group
	esac

	if [ "$command" ]; then
		$BSDCFG_LIBE/$APP_DIR/$command ${USE_XDIALOG:+-X}
	else
		f_die 1 "$msg_unknown_user_management_menu_selection"
	fi
done

exit $SUCCESS

################################################################################
# END
################################################################################
@


1.19.2.1
log
@file usermgmt was added on branch RELENG_9 on 2013-07-07 20:03:18 +0000
@
text
@d1 169
@


1.19.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252995
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 169
#!/bin/sh
#-
# Copyright (c) 2012 Ron McDowell
# Copyright (c) 2012-2013 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: stable/9/usr.sbin/bsdconfig/usermgmt/usermgmt 252995 2013-07-07 19:13:34Z dteske $
#
############################################################ INCLUDES

BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_dprintf "%s: loading includes..." "$0"
f_include $BSDCFG_SHARE/dialog.subr
f_include $BSDCFG_SHARE/mustberoot.subr

BSDCFG_LIBE="/usr/libexec/bsdconfig" APP_DIR="070.usermgmt"
f_include_lang $BSDCFG_LIBE/$APP_DIR/include/messages.subr

USERMGMT_HELPFILE=$BSDCFG_LIBE/$APP_DIR/include/usermgmt.hlp

ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
[ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm"

############################################################ FUNCTIONS

# dialog_menu_main
#
# Display the dialog(1)-based application main menu.
#
dialog_menu_main()
{
	local prompt=
	local menu_list="
		'X' '$msg_exit'
		'1' '$msg_add_login'
		'2' '$msg_edit_login'
		'3' '$msg_delete_login'
		'-' '-'
		'4' '$msg_add_group'
		'5' '$msg_edit_group'
		'6' '$msg_delete_group'
	" # END-QUOTE
	local defaultitem= # Calculated below
	local hline="$hline_arrows_tab_enter"

	local height width rows
	eval f_dialog_menu_size height width rows \
	                        \"\$DIALOG_TITLE\"     \
	                        \"\$DIALOG_BACKTITLE\" \
	                        \"\$prompt\"           \
	                        \"\$hline\"            \
	                        $menu_list

	# When using Xdialog(1) we need to bump the width for the buttons
	[ "$USE_XDIALOG" ] && width=40

	# Obtain default-item from previously stored selection
	f_dialog_default_fetch defaultitem

	local menu_choice
	menu_choice=$( eval $DIALOG \
		--title \"\$DIALOG_TITLE\"  \
		--backtitle \"\$DIALOG_BACKTITLE\" \
		--hline \"\$hline\"                \
		--ok-label \"\$msg_ok\"            \
		--cancel-label \"\$msg_cancel\"    \
		--help-button                      \
		--help-label \"\$msg_help\"        \
		${USE_XDIALOG:+--help \"\"}        \
		--default-item \"\$defaultitem\"   \
		--menu \"\$prompt\"                \
		$height $width $rows               \
		$menu_list                         \
		2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
	)
	local retval=$?
	f_dialog_data_sanitize menu_choice
	f_dialog_menutag_store "$menu_choice"

	# Only update default-item on success
	[ $retval -eq 0 ] && f_dialog_default_store "$menu_choice"

	return $retval
}

############################################################ MAIN

# Incorporate rc-file if it exists
[ -f "$HOME/.bsdconfigrc" ] && f_include "$HOME/.bsdconfigrc"

#
# Process command-line arguments
#
while getopts h$GETOPTS_STDARGS flag; do
	case "$flag" in
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;;
	esac
done
shift $(( $OPTIND - 1 ))

#
# Initialize
#
f_dialog_title "$msg_login_management"
f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
f_mustberoot_init

#
# Launch application main menu
#
while :; do
	dialog_menu_main
	retval=$?
	f_dialog_menutag_fetch mtag
	f_dprintf "retval=%u mtag=[%s]" $retval "$mtag"

	if [ $retval -eq 2 ]; then
		# The Help button was pressed
		f_show_help "$USERMGMT_HELPFILE"
		continue
	elif [ $retval -ne $SUCCESS ]; then
		f_die
	fi

	command=
	case "$mtag" in
	X) break ;;
	1) command=useradd   ;; # Add User
	2) command=useredit  ;; # Edit/View User
	3) command=userdel   ;; # Delete User
	4) command=groupadd  ;; # Add Group
	5) command=groupedit ;; # Edit/View Group
	6) command=groupdel  ;; # Delete Group
	esac

	if [ "$command" ]; then
		$BSDCFG_LIBE/$APP_DIR/$command ${USE_XDIALOG:+-X}
	else
		f_die 1 "$msg_unknown_user_management_menu_selection"
	fi
done

exit $SUCCESS

################################################################################
# END
################################################################################
@


1.19.2.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263791
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: stable/9/usr.sbin/bsdconfig/usermgmt/usermgmt 263791 2014-03-27 03:20:47Z dteske $
d43 2
a44 2
f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ipgm &&
	pgm="${ipgm:-$pgm}"
d103 1
a103 1
	[ $retval -eq $DIALOG_OK ] && f_dialog_default_store "$menu_choice"
d139 2
a140 1
	if [ $retval -eq $DIALOG_HELP ]; then
d143 1
a143 1
	elif [ $retval -ne $DIALOG_OK ]; then
@


1.18
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251967
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 251967 2013-06-18 21:44:35Z dteske $
d118 1
a118 1
	h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";;
@


1.17
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251264
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 251264 2013-06-02 20:02:50Z dteske $
d147 1
d149 8
a156 27
	X) # Exit
	   exit 0
	   ;;

	1) # Add User
	   $BSDCFG_LIBE/$APP_DIR/useradd ${USE_XDIALOG:+-X}
	   ;;

	2) # Edit/View User
	   $BSDCFG_LIBE/$APP_DIR/useredit ${USE_XDIALOG:+-X}
	   ;;

	3) # Delete User
	   $BSDCFG_LIBE/$APP_DIR/userdel ${USE_XDIALOG:+-X}
	   ;;

	4) # Add Group
	   $BSDCFG_LIBE/$APP_DIR/groupadd ${USE_XDIALOG:+-X}
	   ;;

	5) # Edit/View Group
	   $BSDCFG_LIBE/$APP_DIR/groupedit ${USE_XDIALOG:+-X}
	   ;;

	6) # Delete Group
	   $BSDCFG_LIBE/$APP_DIR/groupdel ${USE_XDIALOG:+-X}
	   ;;
d158 5
a162 1
	esac
d165 2
@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251244
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 251244 2013-06-02 09:02:12Z dteske $
d54 2
a55 5
	local menu_list
	local hline="$hline_arrows_tab_enter"
	local defaultitem= # Calculated below

	menu_list="
d65 2
d72 1
a72 1
	                        \"\"                   \
d93 1
a93 1
		--menu \"\"                        \
@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251236
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 251236 2013-06-01 23:58:44Z dteske $
d56 1
d80 3
d86 11
a96 11
		--backtitle \"\$DIALOG_BACKTITLE\"  \
		--hline \"\$hline\"                 \
		--ok-label \"\$msg_ok\"             \
		--cancel-label \"\$msg_cancel\"     \
		--help-button                       \
		--help-label \"\$msg_help\"         \
		${USE_XDIALOG:+--help \"\"}         \
		--default-item \"\$DEFAULTITEM_$$\" \
		--menu \"\"                         \
		$height $width $rows                \
		$menu_list                          \
d104 1
a104 1
	[ $retval -eq 0 ] && setvar DEFAULTITEM_$$ "$menu_choice"
@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251190
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 251190 2013-05-31 19:07:17Z dteske $
d79 2
a80 2
	local dialog_menu
	dialog_menu=$( eval $DIALOG \
d96 2
a97 1
	setvar DIALOG_MENU_$$ "$dialog_menu"
d100 1
a100 1
	[ $retval -eq 0 ] && setvar DEFAULTITEM_$$ "$dialog_menu"
d133 1
a133 1
	mtag=$( f_dialog_menutag )
@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/250633
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 250633 2013-05-14 03:21:13Z dteske $
d54 1
a54 1
	local menu_list size
d68 10
a77 14
	size=$( eval f_dialog_menu_size \
	        	\"\$DIALOG_TITLE\"     \
	        	\"\$DIALOG_BACKTITLE\" \
	        	\"\"                   \
	        	\"\$hline\"            \
	        	$menu_list             )

	if [ "$USE_XDIALOG" ]; then
		# need to bump the width for the buttons
		local height menu_height
		height="${size%%[$IFS]*}" # first word
		menu_height="${size##*[$IFS]}" # last word
		size="$height 40 $menu_height"
	fi
d90 3
a92 1
		--menu \"\" $size $menu_list        \
@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249751
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 249751 2013-04-22 05:52:06Z dteske $
d114 1
a114 1
while getopts dD:hSX flag; do
@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/249746
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 249746 2013-04-22 05:02:34Z dteske $
d85 10
a94 9
		--clear --title \"\$DIALOG_TITLE\" \
		--backtitle \"\$DIALOG_BACKTITLE\" \
		--hline \"\$hline\"                \
		--ok-label \"\$msg_ok\"            \
		--cancel-label \"\$msg_cancel\"    \
		--help-button                      \
		--help-label \"\$msg_help\"        \
		${USE_XDIALOG:+--help \"\"}        \
		--menu \"\" $size $menu_list       \
d99 4
@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/245401
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d4 1
a4 1
# Copyright (c) 2012 Devin Teske
d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 245401 2013-01-14 01:09:23Z dteske $
d109 1
a109 1
while getopts hSX flag; do
@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244675
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 244675 2012-12-25 10:47:45Z dteske $
d91 1
@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244674
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 244674 2012-12-25 09:30:25Z dteske $
d34 1
@


1.7
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244550
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 244550 2012-12-21 19:26:17Z dteske $
a116 1
f_dialog_init
@


1.6
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243112
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243112 | dteske | 2012-11-16 00:59:11 +0000 (Fri, 16 Nov 2012) | 11 lines
## SVN ##
## SVN ## Replicate a feature from sysinstall documented in
## SVN ## stable/9/usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## To get a list of modules you can link to, see `bsdconfig -h' output.
## SVN ##
## SVN ## Approved by:	adrian (co-mentor) (implicit)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 243112 2012-11-16 00:59:11Z dteske $
d129 1
a129 1
	f_dprintf "retval=$retval mtag=[$mtag]"
@


1.5
log
@Switching exporter and resync
@
text
@d28 1
a28 1
# $FreeBSD: head/usr.sbin/bsdconfig/usermgmt/usermgmt 242123 2012-10-26 03:20:04Z dteske $
d42 1
a42 1
ipgm=$( f_index_menu_selection $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
@


1.4
log
@SVN rev 242123 on 2012-10-26 03:20:04Z by dteske

Resurrect and integrate stable/9/usr.sbin/sysinstall/help/usermgmt.hlp

Approved by:	adrian (co-mentor) (implicit)
@
text
@d28 1
a28 1
# $FreeBSD$
@


1.3
log
@SVN rev 240768 on 2012-09-20 23:44:13Z by dteske

Change all invocations of dialog(1) to no-longer require temporary files.
This allows bsdconfig to -- like bsdinstall -- operate from read-only media.

Reviewed by:	adrian (co-mentor)
Approved by:	adrian (co-mentor)
@
text
@d40 2
d74 8
d89 2
d131 7
a137 1
	[ $retval -eq 0 ] || f_die
@


1.2
log
@SVN rev 240684 on 2012-09-18 22:28:42Z by dteske

Move major includes into /usr/share/bsdconfig for easy external access.

Reviewed by:	adrian (co-mentor)
Approved by:	adrian (co-mentor)
@
text
@d72 2
a73 1
	eval $DIALOG \
d80 5
a84 1
		2> "$DIALOG_TMPDIR/dialog.menu.$$"
@


1.1
log
@SVN rev 238438 on 2012-07-14 03:16:57Z by dteske

Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by:	Devin Teske (dteske), Ron McDowell <rcm@@fuzzwad.org>
Reviewed by:	Ron McDowell <rcm@@fuzzwad.org>
Approved by:	Ed Maste (emaste)
@
text
@d32 4
a35 4
BSDCFG_LIBE="/usr/libexec/bsdconfig"
. $BSDCFG_LIBE/include/common.subr || exit 1
f_include $BSDCFG_LIBE/include/dialog.subr
f_include $BSDCFG_LIBE/include/mustberoot.subr
d37 1
a37 1
APP_DIR="070.usermgmt"
@

