diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-02 15:51:22 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-02 15:51:22 -0600 |
commit | 56a2be328504b9d7e49ee87279c394644f7a3009 (patch) | |
tree | c71c63336f24e665f90cbab37448a153538ce9f1 /addgroup | |
parent | ae61fe98419a46847009f0153d6b2e43f5bed891 (diff) | |
download | image-56a2be328504b9d7e49ee87279c394644f7a3009.tar.gz image-56a2be328504b9d7e49ee87279c394644f7a3009.tar.bz2 image-56a2be328504b9d7e49ee87279c394644f7a3009.tar.xz image-56a2be328504b9d7e49ee87279c394644f7a3009.zip |
adelie-build-{cd,txz}: Remove vestiges of boxes past
Diffstat (limited to 'addgroup')
-rwxr-xr-x | addgroup | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/addgroup b/addgroup deleted file mode 100755 index 051df36..0000000 --- a/addgroup +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# addgroup - BusyBox compatibility shim -# bbshim -# -# Copyright © 2017 A. Wilcox. All rights reserved. -# Licensed under the terms of the NCSA Open Source license. -# - -ARG= -CMDLINE= - -while getopts :g:S ARG -do - case $ARG in - g) CMDLINE="$CMDLINE -g \"$OPTARG\"" ;; - S) CMDLINE="$CMDLINE -r" ;; - :) exit 1 ;; - \?) exit 1 ;; - esac -done - -shift $(($OPTIND - 1)) - -if [ -z "$*" ]; then - echo "$0: group name is required" >&2 - exit 1 -fi - -set "$@" - - -if [ -n "$2" ]; then - exec usermod -a -G $2 $1 -fi - -groupadd $CMDLINE $1 |