summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/usermgmt
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2014-03-07 22:29:00 +0000
committerdteske <dteske@FreeBSD.org>2014-03-07 22:29:00 +0000
commitc81a3d85c665d51f31818f8f2e5e724692806c54 (patch)
tree25863b6e3c3956c37c7b38f2408e54446f0bc6bd /usr.sbin/bsdconfig/usermgmt
parentef12c3b63fe7d2e84a76fd63ebaaae6565d63fb3 (diff)
downloadFreeBSD-src-c81a3d85c665d51f31818f8f2e5e724692806c54.zip
FreeBSD-src-c81a3d85c665d51f31818f8f2e5e724692806c54.tar.gz
Take a group name on the command-line if available.
Diffstat (limited to 'usr.sbin/bsdconfig/usermgmt')
-rwxr-xr-xusr.sbin/bsdconfig/usermgmt/groupdel8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/bsdconfig/usermgmt/groupdel b/usr.sbin/bsdconfig/usermgmt/groupdel
index a4a0382..ea55489 100755
--- a/usr.sbin/bsdconfig/usermgmt/groupdel
+++ b/usr.sbin/bsdconfig/usermgmt/groupdel
@@ -66,6 +66,14 @@ f_dialog_backtitle "${ipgm:+bsdconfig }$pgm"
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=
OpenPOWER on IntegriCloud