svn commit: r262910 - head/usr.sbin/bsdconfig/usermgmt
Devin Teske
dteske at FreeBSD.org
Fri Mar 7 22:29:01 UTC 2014
Author: dteske
Date: Fri Mar 7 22:29:00 2014
New Revision: 262910
URL: http://svnweb.freebsd.org/changeset/base/262910
Log:
Take a group name on the command-line if available.
Modified:
head/usr.sbin/bsdconfig/usermgmt/groupdel
Modified: head/usr.sbin/bsdconfig/usermgmt/groupdel
==============================================================================
--- head/usr.sbin/bsdconfig/usermgmt/groupdel Fri Mar 7 22:24:53 2014 (r262909)
+++ head/usr.sbin/bsdconfig/usermgmt/groupdel Fri Mar 7 22:29:00 2014 (r262910)
@@ -66,6 +66,14 @@ f_dialog_backtitle "${ipgm:+bsdconfig }$
f_mustberoot_init
#
+# If given a group name, operate on it and exit
+#
+if [ "$1" ]; then
+ f_group_delete "$1"
+ exit $SUCCESS
+fi
+
+#
# Loop until the user Exits, Cancels or presses ESC
#
defaultitem=
More information about the svn-src-head
mailing list