summaryrefslogtreecommitdiffstats
path: root/adduser/adduser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'adduser/adduser.sh')
-rw-r--r--adduser/adduser.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/adduser/adduser.sh b/adduser/adduser.sh
index 6c14251..9db60e8 100644
--- a/adduser/adduser.sh
+++ b/adduser/adduser.sh
@@ -881,4 +881,22 @@ if [ -n "$fflag" ]; then
fi
else
input_interactive
+ while : ; do
+ echo -n "Add another user? (yes/no): "
+ read _input
+ case $_input in
+ [Yy][Ee][Ss]|[Yy][Ee]|[Yy])
+ uidstart=`get_nextuid $uidstart`
+ input_interactive
+ continue
+ ;;
+ [Nn][Oo]|[Nn])
+ echo "Goodbye!"
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ break
+ done
fi