When using uidstart in /etc/adduser.conf, get the next

available user id and show it in the "Uid [xxx]" prompt.

PR:		163863
Submitted by:	Moritz Wilhelmy (mw at wzff dot de)
MFC after:	2 weeks
This commit is contained in:
Daniel Eischen 2012-02-25 07:58:59 +00:00
parent e7e7593cd8
commit a2cdef71d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232146

View File

@ -488,6 +488,7 @@ get_uid() {
_prompt=
if [ -n "$uuid" ]; then
uuid=`get_nextuid $uuid`
_prompt="Uid [$uuid]: "
else
_prompt="Uid (Leave empty for default): "