diff options
author | dteske <dteske@FreeBSD.org> | 2014-03-07 22:29:00 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2014-03-07 22:29:00 +0000 |
commit | c81a3d85c665d51f31818f8f2e5e724692806c54 (patch) | |
tree | 25863b6e3c3956c37c7b38f2408e54446f0bc6bd | |
parent | ef12c3b63fe7d2e84a76fd63ebaaae6565d63fb3 (diff) | |
download | FreeBSD-src-c81a3d85c665d51f31818f8f2e5e724692806c54.zip FreeBSD-src-c81a3d85c665d51f31818f8f2e5e724692806c54.tar.gz |
Take a group name on the command-line if available.
-rwxr-xr-x | usr.sbin/bsdconfig/usermgmt/groupdel | 8 |
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= |